/* 全局重置与字体准备 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff9e6;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 自定义字体：Lilita One (cursive fallback) */
@font-face {
    font-family: 'Lilita One';
    src: local('Lilita One'), local('LilitaOne-Regular'),
         url('https://fonts.gstatic.com/s/lilitaone/v13/i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 固定右上角按钮 —— 保持在可视区域 */
.email-float-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 999;
    width: 64px;
    height: 64px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.email-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.email-float-btn img {
    width: 36px;
    height: 36px;
    display: block;
    pointer-events: none;
}

.email-float-btn .icon {
    width: 36px;
    height: 36px;
    background-color: #1e1d23;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    background-color: #1e1d23;
}

/* 简介部分 (第一部分) */
.intro-section {
    width: 80%;
    min-width: 800px;
    margin-top: 60px;
    text-align: center;
    flex-shrink: 0;
}

.custom-headline {
    font-family: 'Lilita One', cursive;
    font-size: 45px;
    color: #1e1d23;
    letter-spacing: 0.02em;
    font-weight: 400;
    line-height: 1.2;
}

.subheadline {
    font-size: 18px;
    color: #8d8d8d;
    margin-top: 30px;
    font-weight: 400;
}

/* 第二部分——卡片容器 */
.cards-section {
    width: 80%;
    min-width: 800px;
    margin-top: 80px;
    margin-bottom: 60px;
    flex-shrink: 0;
}

/* 卡片网格——使用flex wrap实现自动换行且居中 */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
}

/* 卡片方块 */
.card {
    width: 360px;
    height: 480px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    color: inherit;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

/* 卡片上方图片区 360x360 */
.card-image {
    width: 100%;
    height: 360px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* 卡片内容区 */
.card-content {
    padding: 10px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #ffffff;
}

/* 图片下方的小段文字说明 */
.card-desc {
    font-size: 12px;
    color: #8d8d8d;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* 22px 粗标题 */
.card-title {
    font-size: 22px;
    color: #1e1d23;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* 底部两段标签的容器 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    background-color: #eaeef2;
    color: #8d8d8d;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}

/* 页脚 */
.footer {
    width: 100%;
    height: 80px;
    background-color: #1e1d23;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    font-size: 15px;
    color: #656565;
}

.footer-copyright, .footer-content {
    text-align: center;
}

.footer-copyright .highlight, .footer-content .highlight {
    color: #ffd966;
    font-weight: 500;
}

.footer-content .highlight {
    color: #f7d44a;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 产品页面通用样式 */
.product-page-body {
    background-color: #fef9e7;
}

/* 固定右上角返回按钮 */
.fixed-home-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 999;
    background-color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.fixed-home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.fixed-home-btn img {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
}

.fixed-home-btn a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

/* 第一部分容器：全宽淡灰褐背景 */
.hero-section {
    background-color: #3a4a5c;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

/* 图标盒子 */
.icon-box {
    flex-shrink: 0;
    width: 384px;
    height: 384px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 右侧文字区块 */
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-name {
    font-size: 40px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.app-description {
    font-size: 13px;
    color: #d3d3d3;
    line-height: 1.5;
    max-width: 400px;
    opacity: 0.9;
}

.app-description.marktool {
    max-width: 280px;
}

/* 下载按钮组 */
.download-buttons {
    display: flex;
    gap: 20px;
    margin: 8px 0 4px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f0b34b;
    color: #1e1d23;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 40px;
    border-radius: 40px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    min-width: 160px;
}

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

.download-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.sys-info {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 12px;
    border-left: 2px solid #f0b34b;
    padding-left: 12px;
    line-height: 1.5;
}

.sys-info .version {
    font-weight: 600;
    color: white;
}

.sys-info .compat {
    font-size: 12px;
    color: #b0c0d0;
}

/* 功能介绍 */
.features-section {
    max-width: 1000px;
    margin: 80px auto 100px;
    padding: 0 20px;
}

.features-title {
    font-size: 32px;
    font-weight: 300;
    color: #2d3a47;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
    border-bottom: 2px solid #d4b68a;
    display: inline-block;
    padding-bottom: 6px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
}

.feature-item {
    background: rgba(255,255,240,0.6);
    padding: 22px 32px;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #f0e0c0;
    transition: transform 0.1s ease;
}

.feature-item:hover {
    transform: translateX(6px);
    background: rgba(255,250,235,0.8);
}

.feature-item strong {
    font-size: 22px;
    font-weight: 600;
    color: #2d4b65;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-item .feature-desc {
    font-size: 18px;
    color: #3e5569;
    line-height: 1.5;
    font-weight: 350;
    border-left: 3px solid #d4a373;
    padding-left: 18px;
    margin-left: 6px;
}

.feature-item::before {
    display: none;
}

/* 截图轮播 */
.carousel-section {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
    text-align: center;
}

.carousel-title {
    font-size: 32px;
    font-weight: 300;
    color: #2d3a47;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-frame {
    width: 800px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.3);
    background: #f1e7d6;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 800px;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* 上一张下一张按钮 */
.carousel-btn {
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    font-size: 26px;
    font-weight: 300;
    color: #2d3a47;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.carousel-btn:hover {
    background: #f5e7d3;
    transform: scale(1.07);
}

.carousel-btn:active {
    background: #e2cfb5;
}

/* 产品页面页脚 */
.product-footer {
    height: 200px;
}

.product-footer .footer-content {
    letter-spacing: 0.3px;
}

/* 响应式微调 */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .icon-box {
        width: 300px;
        height: 300px;
    }

    .hero-text {
        align-items: center;
    }

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

    .carousel-frame {
        width: 100%;
        max-width: 500px;
    }

    .carousel-slide {
        width: 100%;
    }

    .carousel-container {
        flex-wrap: wrap;
    }

    .feature-item {
        padding: 18px 22px;
    }

    .feature-item strong {
        font-size: 20px;
    }

    .feature-item .feature-desc {
        font-size: 16px;
    }

    .intro-section, .cards-section {
        min-width: auto;
    }
}
