/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    text-align: center;
    margin-bottom: 1rem;
}

/* 段落样式 */
p {
    text-align: center;
}

.section__title {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    position: relative;
}

.section__title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin: 0.5rem auto;
    border-radius: 3px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    /* 确保按钮内部内容居中 */
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, #2980b9, #3498db);
}

/* 页头样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 桌面端导航 */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.desktop-nav a:hover {
    color: #3498db;
}

/* 移动端汉堡菜单 */
.hamburger-btn {
    display: none;
    cursor: pointer;
}

.hamburger-btn img {
    width: 30px;
    height: 30px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav__close {
    text-align: right;
    margin-bottom: 2rem;
    cursor: pointer;
}

.mobile-nav__close img {
    width: 30px;
    height: 30px;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav li {
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

/* 横幅样式 - 核心：按钮居中 */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    margin-bottom: 3rem;
}

.hero__content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero__text {
    flex: 1;
    /* 新增：让按钮容器具备居中能力 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    text-align: center; /* 文本居中 */
}

.hero__title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.hero__desc {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
    width: 100%;
}

.hero__btn {
    /* 核心：按钮在自身容器内居中，且宽度自适应 */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: auto;
    min-width: 160px; /* 可选：给按钮最小宽度，避免过窄 */
}

.hero__img {
    flex: 1;
}

.hero__img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero__img img:hover {
    transform: scale(1.02);
}

/* 发展历程区块 - 适配6个卡片布局，样式无修改 */
.development {
    padding: 2rem 0 4rem;
}

.development__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.development__card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.development__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.development__card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.development__card-content {
    padding: 1.5rem;
}

.development__card-content h3 {
    text-align: left;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.development__card-content p {
    text-align: left;
    color: #666;
    font-size: 0.95rem;
}

/* 下载区块 */
.download {
    padding: 4rem 0;
    background-color: #f1f5f9;
    margin-bottom: 3rem;
}

.download__content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.download__text {
    flex: 1;
}

.download__title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download__desc {
    text-align: left;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.download__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.download__btn {
    padding: 0.8rem 1.2rem;
    gap: 0.8rem;
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.download__btn:hover {
    background: linear-gradient(to right, #27ae60, #2ecc71);
}

.download__btn img {
    width: 40px;
    height: 40px;
}

.download__img {
    flex: 1;
}

.download__img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 折叠区块 */
.accordion {
    padding: 2rem 0 4rem;
}

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

.accordion__item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.accordion__header:hover {
    background-color: #e9ecef;
}

.accordion__header h3 {
    margin: 0;
    text-align: left;
}

.accordion__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.accordion__body {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion__body.active {
    padding: 1.5rem;
    max-height: 500px;
}

.accordion__body p {
    text-align: left;
    color: #666;
}

/* 关注我们 & APP下载区块 */
.follow-download {
    padding: 3rem 0;
    background: linear-gradient(135deg, #e4eaf5 0%, #f5f7fa 100%);
    margin-bottom: 3rem;
}

.follow-download__content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.follow, .app-download {
    text-align: center;
}

.follow__qrcode {
    margin-top: 1rem;
}

.follow__qrcode img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-download__btns {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.app-download__btn {
    background-color: #3498db;
    padding: 0.8rem 2rem;
    width: 200px;
    gap: 0.5rem;
}

/* 页尾样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer h3 {
    color: #fff;
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #3498db;
    margin-top: 0.5rem;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__nav-col ul {
    list-style: none;
}

.footer__nav-col li {
    margin-bottom: 0.8rem;
}

.footer__nav-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__nav-col a:hover {
    color: #3498db;
}

.footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

.footer__links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #3498db;
}

.footer__copyright {
    text-align: center;
    color: #95a5a6;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .hero__content, .download__content {
        flex-direction: column;
        text-align: center;
    }

    .hero__title, .hero__desc {
        text-align: center;
    }

    .hero__btn {
        margin: 0 auto;
    }

    .download__title, .download__desc {
        text-align: center;
    }

    .download__btns {
        justify-content: center;
    }

    .follow-download__content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .development__cards {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .footer__nav {
        grid-template-columns: 1fr;
    }

    .app-download__btn {
        width: 100%;
        max-width: 200px;
    }

    .hero {
        padding: 2rem 0;
    }

    .download {
        padding: 2rem 0;
    }

    .hero__title {
        font-size: 1.6rem;
    }
}