* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
:root {
    --main-green: #18a058;
    --light-green: #e8f8ef;
    --dark-green: #0d7a42;
    --accent-gold: #d4a017;
    --text-color: #333;
    --white: #fff;
    --border-color: #d4e8dc;
    --footer-h: 56px;
}
body {
    background-color: #f4fbf7;
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: calc(var(--footer-h) + 20px);
}
a {
    color: var(--main-green);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.site-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(24, 160, 88, 0.08);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    flex-wrap: wrap;
    gap: 8px;
}
.nav-brand {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-green);
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 6px 18px;
    list-style: none;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--main-green);
}

.header {
    background: linear-gradient(135deg, var(--main-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(24, 160, 88, 0.25);
}
.header h1 {
    font-size: 30px;
    margin-bottom: 8px;
}
.header p {
    font-size: 15px;
    opacity: 0.95;
}
.header-sub {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 6px;
}

/* boylove 主推 Hero */
.hero-boylove {
    background: var(--white);
    border-radius: 10px;
    padding: 28px 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(24, 160, 88, 0.12);
    display: flex;
    align-items: center;
    gap: 24px;
    border: 2px solid var(--main-green);
}
.hero-boylove-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light-green);
}
.hero-boylove-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-boylove-body {
    flex: 1;
}
.hero-boylove-body h2 {
    font-size: 22px;
    color: var(--dark-green);
    margin-bottom: 10px;
}
.hero-boylove-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.7;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.hero-tag {
    background: var(--light-green);
    color: var(--dark-green);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}
.btn-primary {
    display: inline-block;
    background: var(--main-green);
    color: var(--white);
    padding: 11px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: var(--dark-green);
}
.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--main-green);
    border: 1px solid var(--main-green);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}
.btn-secondary:hover {
    background: var(--light-green);
}

.hint-layer {
    width: 100%;
    background: #f0faf4;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid var(--main-green);
}
.hint-layer p {
    font-size: 14px;
    line-height: 1.8;
    color: #2d5a3d;
}

.breadcrumb {
    font-size: 13px;
    color: #888;
    margin: 16px 0 0;
}
.breadcrumb a {
    color: var(--main-green);
    text-decoration: none;
}

.section {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 1px 6px rgba(24, 160, 88, 0.08);
}
.section-title {
    color: var(--dark-green);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-green);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: "●";
    color: var(--main-green);
}
.section-title small {
    font-size: 13px;
    color: #999;
    font-weight: normal;
    margin-left: auto;
}

.download-list {
    list-style: none;
}
.download-item {
    margin-bottom: 10px;
}
.download-item.featured .download-wrap {
    border-color: var(--main-green);
    background: linear-gradient(90deg, #e8f8ef 0%, #f0faf4 100%);
}
.download-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--light-green);
    transition: all 0.3s;
    text-decoration: none;
}
.download-wrap:hover {
    border-color: var(--main-green);
    background: #c6ebd9;
}
.download-cover {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}
.download-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.download-info {
    flex: 1;
}
.download-link-text {
    color: var(--dark-green);
    font-size: 15px;
    font-weight: 500;
}
.download-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.feature-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    background: #f8fdf9;
}
.feature-card h3 {
    font-size: 16px;
    color: var(--dark-green);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.step-list {
    counter-reset: step;
    list-style: none;
}
.step-list li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: var(--main-green);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-weight: bold;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-q {
    font-weight: bold;
    color: var(--dark-green);
    margin-bottom: 6px;
    font-size: 15px;
}
.faq-a {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.content-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}
.content-text:last-child {
    margin-bottom: 0;
}

.comment-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}
.comment-user {
    color: var(--dark-green);
    font-weight: bold;
}
.comment-time {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}
.comment-content {
    color: #555;
    margin-top: 6px;
}

.disclaimer-box {
    background: #f8fdf9;
    border: 1px dashed #b8dcc8;
    border-radius: 6px;
    padding: 16px;
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

.footer {
    background-color: var(--dark-green);
    color: var(--white);
    text-align: center;
    padding: 22px 0;
    margin-top: 30px;
}
.footer p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.95;
}
.footer a {
    color: #fff;
}
.footer-note {
    font-size: 12px;
    opacity: 0.85;
    max-width: 800px;
    margin: 10px auto 0;
    padding: 0 15px;
}

/* 底部悬浮下载栏 */
.float-download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 12px rgba(24, 160, 88, 0.12);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.float-download-bar.visible {
    transform: translateY(0);
}
.float-bar-text {
    font-size: 14px;
    color: #555;
}
.float-bar-text strong {
    color: var(--dark-green);
}
.float-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--main-green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
.float-bar-btn:hover {
    background: var(--dark-green);
}

.float-qrcode {
    position: fixed;
    right: 30px;
    bottom: calc(var(--footer-h) + 30px);
    z-index: 999;
    text-align: center;
    transition: transform 0.2s ease;
}
.float-qrcode:hover {
    transform: scale(1.05);
}
.float-qrcode img {
    width: 110px;
    height: 110px;
    border: 3px solid var(--main-green);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}
.float-qrcode .tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--main-green);
    font-weight: 500;
}

@media (max-width: 768px) {
    .site-nav {
        padding-top: env(safe-area-inset-top, 0);
    }
    .site-nav .container {
        height: auto;
        min-height: 48px;
        flex-wrap: nowrap;
        align-items: stretch;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 0;
    }
    .nav-brand {
        flex-shrink: 0;
        font-size: 16px;
        line-height: 36px;
        padding-right: 10px;
        border-right: 1px solid var(--border-color);
        margin-right: 4px;
    }
    .nav-links {
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        align-items: center;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        flex-shrink: 0;
    }
    .nav-links a {
        display: block;
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 4px;
    }
    .nav-links a.active {
        background: var(--light-green);
    }
    .header {
        padding: 16px 0 14px;
    }
    .header h1 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 6px;
        padding: 0 12px;
    }
    .header p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 12px;
    }
    .header-sub {
        font-size: 11px;
        margin-top: 6px;
        padding: 0 12px;
        line-height: 1.45;
    }
    .hero-boylove {
        flex-direction: column;
        text-align: center;
        padding: 22px 16px;
    }
    .hero-tags {
        justify-content: center;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    .float-bar-text {
        display: none;
    }
    .float-bar-btn {
        flex: 1;
        justify-content: center;
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .download-desc {
        display: none !important;
    }
    .download-wrap {
        gap: 10px;
    }
    .download-cover {
        width: 60px;
        height: 60px;
    }
    .header {
        padding: 14px 0 12px;
    }
    .header h1 {
        font-size: 17px;
    }
    .header p {
        font-size: 12px;
    }
    .header-sub {
        font-size: 11px;
    }
    .float-qrcode {
        display: none !important;
    }
    .nav-brand {
        font-size: 15px;
        padding-right: 8px;
    }
    .nav-links a {
        padding: 8px 10px;
        font-size: 12px;
    }
}
