/* ================= 全局基础重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 保证页面至少一屏高度 */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 保证主体区域自动撑开，避免底部空白 */
main {
    flex: 1;
}

/* ================= 顶部导航 ================= */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    display: block;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    color: #555;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #6cbf35;
    border-bottom: 3px solid #6cbf35;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6cbf35, #4ca021);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(108, 191, 53, 0.3);
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: scale(1.05);
}

/* ================= 首页 Hero 首屏 ================= */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9eb 0%, #e2f4d9 100%);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    width: 52%;
}

.hero-text h1 {
    font-size: 52px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #6cbf35;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-img {
    width: 42%;
}

.hero-img img {
    width: 100%;         /* 宽度自适应容器 */
    height: auto;        /* 高度根据图片比例自动计算，绝对完整不裁剪 */
    object-fit: contain; /* 确保完整显示 */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-group {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #6cbf35;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f8fdf5;
    transform: scale(1.05);
}

/* ================= 平台特色 (修复版：上下居中，绝对不竖排) ================= */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    padding: 40px 25px;
    border-radius: 12px;
    background: #f9fdf6;
    text-align: center; /* 内容居中 */
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 191, 53, 0.1);
}

.feature-item .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.feature-item p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* ================= App 预览区 (适配三张竖图) ================= */
.app-preview-section {
    padding: 60px 0;
    background: #f5f7f6;
    text-align: center;
}

.preview-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* 图片之间的间距 */
    margin-top: 40px;
}

.preview-grid img {
    width: 260px; /* 固定宽度 */
    height: 460px; /* 固定高度 */
    object-fit: contain; /* 关键：统一裁剪填充，防止大小不一或变形 */
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.preview-grid img:hover {
    transform: translateY(-10px);
}

/* ================= 底部下载引导 ================= */
.download-banner {
    padding: 60px 0;
    background: #2c3e50;
    color: #fff;
}

.banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-text p {
    color: #bdc3c7;
    font-size: 16px;
}

.banner-btn {
    background: #6cbf35;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
}

.banner-btn:hover {
    background: #4ca021;
}

/* ================= 其他页面通用样式 (平台介绍/热门/FAQ) ================= */
.section-title {
    font-size: 24px;
    margin: 30px 0 20px;
    border-left: 5px solid #6cbf35;
    padding-left: 15px;
}

.content-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* 平台介绍的核心优势网格 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.advantage-item {
    background: #f9fdf6;
    border: 1px solid #e2f4d9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.advantage-item h4 {
    color: #6cbf35;
    font-size: 18px;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 热门作品页 3*3 网格 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.comic-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.comic-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.comic-card h3 {
    font-size: 18px;
    margin: 15px 15px 5px;
    color: #222;
}

.comic-card p {
    font-size: 14px;
    color: #888;
    margin: 0 15px 15px;
}

/* ================= 底部 ================= */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
    line-height: 1.8;
}

footer a {
    color: #6cbf35;
}

footer a:hover {
    text-decoration: underline;
}