/* 字体引入 */
@font-face {
    font-family: 'ChillKai';
    src: url('../assets/fonts/ChillKai.ttf') format('truetype'),
         url('../ChillKai.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(115, 22, 28, 0.98);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(244, 228, 188, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.logo-image {
    height: 39px !important;
    width: auto !important;
    object-fit: contain;
    max-width: 39px;
}

.logo-text {
    color: #ffffff !important;
    font-size: 25px !important;
    font-weight: normal !important;
    font-family: 'ChillKai', 'STKaiti', 'KaiTi', 'Noto Serif SC', 'Microsoft YaHei', serif !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    font-style: normal !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #f4e4bc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #f4e4bc;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
main {
    margin-top: 70px;
}

/* 首页横幅 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #73161C 0%, #8b2329 25%, #a52a2a 75%, #b83333 100%);
    color: white;
    padding: 120px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(250, 248, 245, 0.1) 50%, rgba(250, 248, 245, 0.3) 100%);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f4e4bc 0%, transparent 70%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-decoration-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.hero-decoration-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #f4e4bc 0%, transparent 70%);
    top: 50%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 228, 188, 0.15);
    border: 1px solid rgba(244, 228, 188, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #f4e4bc;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #f4e4bc;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'ChillKai', 'STKaiti', 'KaiTi', serif;
}

.title-subtitle {
    display: block;
    font-size: 1.3rem;
    color: #d4af37;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #f4e4bc;
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #73161C;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-btn-secondary {
    background: rgba(244, 228, 188, 0.1);
    color: #f4e4bc;
    border: 2px solid rgba(244, 228, 188, 0.3);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(244, 228, 188, 0.2);
    border-color: #f4e4bc;
    transform: translateY(-2px);
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #d4af37;
    color: #73161C;
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #f4e4bc;
    border: 2px solid #f4e4bc;
}

.btn-secondary:hover {
    background: #f4e4bc;
    color: #73161C;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(244, 228, 188, 0.2);
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(244, 228, 188, 0.2);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f4e4bc;
    opacity: 0.6;
}

.card-title {
    color: #f4e4bc;
    font-weight: 600;
    font-size: 1.1rem;
}

.app-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(244, 228, 188, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(244, 228, 188, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    background: rgba(244, 228, 188, 0.1);
    transform: translateX(5px);
}

.preview-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.preview-text h4 {
    color: #f4e4bc;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.preview-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #333;
    border-radius: 30px;
    border: 8px solid #222;
    position: relative;
}

/* 功能介绍区域 */
.features {
    padding: 100px 0;
    background: #faf8f5;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #73161C;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #f4e4bc;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #73161C;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 下载区域 */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #f4e4bc 0%, #d4af37 100%);
    text-align: center;
}

.download .section-title {
    color: #73161C;
}

.download-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #73161C;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 2rem;
}

.btn-text span {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-text small {
    color: #666;
}

.qr-codes {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: white;
    border: 2px solid #73161C;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #73161C;
}

/* 页脚 */
.footer {
    background: #73161C;
    color: #f4e4bc;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #d4af37;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #f4e4bc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid #8b2329;
    padding-top: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(115, 22, 28, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 80px 0 60px;
        min-height: 70vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding: 0 15px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .title-main {
        font-size: 3rem;
    }

    .title-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        max-width: 350px;
        padding: 20px;
    }

    .hero-decoration {
        display: none;
    }

    .btn {
        padding: 12px 25px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .qr-codes {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .hero-card {
        padding: 15px;
    }

    .preview-item {
        padding: 12px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features,
    .download {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .download-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .qr-placeholder {
        width: 120px;
        height: 120px;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}
