:root {
    --primary-color: #FF6B00;
    --text-color: #333333;
    --background-color: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    display: flex;
    min-height: 100vh;
    padding: 8rem 15% 2rem;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 0 1 auto;
    position: relative;
    margin-right: 2rem;
}

.pencil-decoration {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: auto;
}

.pencil-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
}

.hero-image {
    flex: 0 1 auto;
}

.app-preview {
    width: 375px;
    height: 712px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Decorative Elements */
.decorative-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.note-icon {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    opacity: 0.1;
    transform: rotate(-15deg);
}

.pencil-icon {
    position: absolute;
    top: 80px;
    right: 80px;
    width: 3px;
    height: 60px;
    background-color: var(--primary-color);
    opacity: 0.1;
    transform: rotate(45deg);
}

.book-icon {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: 60px;
    height: 40px;
    background-color: var(--primary-color);
    opacity: 0.1;
    transform: translateX(-50%);
}

/* Features Section */
.features-section {
    background-color: #FFF8E7;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.features-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.features-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.features-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    overflow: hidden;
}

.feature-item {
    flex: 0 0 300px;
    text-align: center;
    min-width: 300px;
}

/* 鍓�4涓浘鐗囨甯告樉绀猴紝鍚庨潰鐨勫浘鐗囬渶瑕佹粦鍔� */
.feature-item:nth-child(n+5) {
    margin-left: 0;
}

.feature-image {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 1rem;
}

.features-description {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 0 2rem;
}

.features-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-store-buttons img {
    height: 40px;
    width: auto;
}

/* FAQ Section */
.faq-section {
    background-color: #FFF5F5;
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/faq-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    mix-blend-mode: multiply;
}

.faq-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 500;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 107, 0, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    padding: 0;
    line-height: 1.8;
    color: var(--text-color);
}

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.faq-answer li:last-child {
    margin-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer strong {
    color: var(--text-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #FFF8E7;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-info {
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero {
        padding: 8rem 10% 2rem;
    }

    .features-container {
        padding: 0 2rem;
        gap: 1.5rem;
    }

    .feature-item {
        flex: 0 1 280px;
    }
}

@media (max-width: 1200px) {
    .hero {
        padding: 8rem 5% 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .features-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        flex: 0 1 260px;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        white-space: normal;
    }

    .pencil-decoration {
        top: -80px;
        width: 130px;
    }

    .app-preview {
        width: 300px;
        height: 570px;
    }

    .app-store-badge {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .features-container {
        padding: 0 2rem;
        gap: 1.5rem;
    }

    .feature-item {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .features-description {
        margin-top: 3rem;
    }

    .features-description p {
        font-size: 1rem;
    }

    .faq-section {
        padding: 4rem 0;
    }

    .faq-container {
        padding: 0 1.5rem;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-question {
        padding: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }

    .app-preview {
        width: 250px;
        height: 475px;
    }

    .pencil-decoration {
        top: -60px;
        width: 110px;
    }

    .app-store-badge {
        width: 140px;
    }

    .features-nav {
        width: 40px;
        height: 40px;
    }

    .features-nav.prev {
        left: 10px;
    }

    .features-nav.next {
        right: 10px;
    }
}

/* Terms Section */
.terms-section {
    padding: 8rem 0 4rem;
    background-color: #FFF8E7;
    min-height: 100vh;
}

.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

.terms-container h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.terms-intro {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: center;
}

.terms-item {
    margin-bottom: 3rem;
}

.terms-item h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.terms-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-item ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

.terms-item li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
}

.terms-item li::before {
    content: "·";
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.terms-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.terms-footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design for Terms */
@media (max-width: 768px) {
    .terms-section {
        padding: 6rem 0 2rem;
    }

    .terms-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .terms-item h2 {
        font-size: 1.3rem;
    }

    .terms-intro {
        font-size: 1rem;
    }
}

.app-store-download {
    margin-top: 6.5rem;
}

.app-store-badge {
    width: 180px;
    height: auto;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .app-store-badge {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .app-store-badge {
        width: 140px;
    }
}

/* 鑱旂郴鎴戜滑閮ㄥ垎鏍峰紡 */
.contact-section {
    padding: 80px 20px;
    background-color: #FFF8E7;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 500;
}

.contact-content {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.contact-item {
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.contact-item h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-item p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-code-caption {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

/* 鍝嶅簲寮忚璁� */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-container h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .contact-content {
        padding: 40px 20px;
    }

    .contact-item h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .contact-item p {
        font-size: 1.1rem;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .qr-code-caption {
        font-size: 0.9rem;
    }
}

/* Navigation Buttons */
.features-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.features-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.features-nav.prev {
    left: 20px;
}

.features-nav.next {
    right: 20px;
}

.features-nav svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
}