/* 基础全局样式 */
html {
    font-size: 16px;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font: 1rem "微软雅黑", "Arial Narrow", HELVETICA;
    -webkit-text-size-adjust: 100%;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部导航样式 */
header {
    background-color: white;
    padding: 1.5625rem 1.875rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.75rem;
    flex-wrap: wrap;
}

.logo {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: #7a50f2;
}

nav[aria-label="主导航"] ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    position: relative;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.25rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s;
}

nav a:hover {
    color: #1e755f;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.125rem;
    background-color: #1e755f;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* 主体内容区样式 */
main#featured-slider-container {
    width: 100%;
    padding: 5rem 1.875rem;
    background: linear-gradient(125deg, #1e755f, #145fa0, #b32486, #cd951a);
    background-size: 800% 800%;
    animation: AnimationName 11s ease infinite;
    flex: 1;
}

/* 内容区布局 */
.content-section {
    max-width: 75rem;
    margin: 0 auto;
    color: white;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

/* 左侧图片栏 - 恢复从小放大动画+保留3D旋转 */
.image-column {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px;
}

.image-column img {
    position: absolute;
    max-width: 80%;
    height: auto;
    border-radius: 0.5rem;
    /* 3D旋转样式保留 */
    transform: perspective(600px) rotateY(45deg) scale(0.8); /* 合并scale和3D旋转 */
    -webkit-transform: perspective(600px) rotateY(45deg) scale(0.8);
    box-shadow: -4px 2px 12px rgba(0, 0, 0, 0.3);
    margin-left: 50px;
    opacity: 0; /* 恢复动画初始透明度 */
    animation: scaleIn 0.8s forwards; /* 恢复从小放大动画 */
}

.image-column img:first-child {
    top: 0;
    left: 0;
    animation-delay: 0.3s; /* 第一张图延迟动画 */
}

.image-column img:last-child {
    bottom: 0;
    right: 0;
    animation-delay: 0.7s; /* 第二张图延迟动画 */
}

/* 右侧文字栏 - 保持整体居中，列表单独左对齐 */
.text-column {
    flex: 1;
    min-width: 300px;
    text-align: center; /* 标题和按钮组保持居中 */
}

.text-column h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 0.8s forwards 1s;
}

/* 列表左对齐 - 关键修改 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem; /* 水平居中（关键） */
    max-width: 400px; /* 桌面端限制最大宽度，避免过宽 */
    text-align: left; /* 文本左对齐（关键） */
    padding: 0 1rem; /* 新增：左右留少量内边距，避免贴边 */
}

.feature-list li {
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
}

/* 列表项动画延迟错开 */
.feature-list li:nth-child(1) { animation-delay: 1.2s; }
.feature-list li:nth-child(2) { animation-delay: 1.3s; }
.feature-list li:nth-child(3) { animation-delay: 1.4s; }
.feature-list li:nth-child(4) { animation-delay: 1.5s; }
.feature-list li:nth-child(5) { animation-delay: 1.6s; }
.feature-list li:nth-child(6) { animation-delay: 1.7s; }
.feature-list li:nth-child(7) { animation-delay: 1.8s; }
.feature-list li:nth-child(8) { animation-delay: 1.9s; }
.feature-list li:nth-child(9) { animation-delay: 2.0s; }
.feature-list li:nth-child(10) { animation-delay: 2.1s; }
.feature-list li:nth-child(11) { animation-delay: 2.2s; }

/* 按钮样式统一优化 - 不同颜色区分 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center; /* 按钮组居中 */
}

.action-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    min-width: 100px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease; /* 修复语法错误（之前换行导致） */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards 2.5s;
    /* 去掉flex:1 避免按钮被强制拉长 */
}

/* 按钮1：加入Q群 - 腾讯蓝 */
.action-buttons a.qq-group {
    background-color: #12B7F5;
}

.action-buttons a.qq-group:hover {
    background-color: #0BA5EC;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(18, 183, 245, 0.3);
}

/* 按钮2：立即下载 - 活力红 */
.action-buttons a.download {
    background-color: #E63946;
}

.action-buttons a.download:hover {
    background-color: #C1121F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

/* 按钮3：购买卡密 - 橙色 */
.action-buttons a.buy {
    background-color: #FF9F1C;
}

.action-buttons a.buy:hover {
    background-color: #E78F00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 159, 28, 0.3);
}

/* 动画关键帧 */
@keyframes scaleIn {
    to {
        opacity: 1;
        transform: perspective(600px) rotateY(45deg) scale(1); /* 动画结束时保留3D旋转+恢复原大小 */
        -webkit-transform: perspective(600px) rotateY(45deg) scale(1);
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes AnimationName {
    0% { background-position: 97% 0% }
    50% { background-position: 4% 100% }
    100% { background-position: 97% 0% }
}

/* 页脚样式 */
footer {
    background-color: white; /* 与导航栏背景色一致 */
    padding: 2.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 -0.125rem 0.625rem rgba(0, 0, 0, 0.05); /* 新增底部阴影，与导航栏呼应 */
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
}

.friend-links {
    margin: 0 0 1.25rem;
}

.friend-links h4 {
    font-size: 1.125rem;
    margin-bottom: 0.9375rem;
    color: #2c3e50; /* 文字颜色改为深色（与导航栏一致） */
    margin-top: 0;
}

.friend-links a {
    color: #2c3e50; /* 链接默认颜色改为深色 */
    margin: 0 0.9375rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
    display: inline-block;
    margin-bottom: 0.625rem;
}

.friend-links a:hover {
    color: #1e755f; /* hover颜色与导航栏一致 */
    text-decoration: none;
}

.copyright {
    font-size: 0.875rem;
    color: #666; /* 版权文字改为深灰色（适配白色背景） */
    margin-top: 1.25rem;
    padding-top: 0.9375rem;
    border-top: 0.0625rem solid rgba(0, 0, 0, 0.1); /* 边框改为浅灰色（适配白色背景） */
}

/* 页脚图片样式 */
.footer-logo {
    text-align: center; /* 图片容器居中 */
    margin-bottom: 1.5rem; /* 图片下方间距，与友情链接区分 */
}

.footer-logo img {
    max-width: 150px; /* 限制图片最大宽度，避免过大 */
    height: auto; /* 保持宽高比 */
    display: inline-block; /* 确保居中生效 */
}
/* 页脚 a 链接精简样式 */
.footer-content a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #1e755f;
    text-decoration: underline;
}

.footer-content a:focus {
    outline: 0.125rem solid #1e755f;
    outline-offset: 0.125rem;
}
/* 响应式调整 */
@media (max-width: 48rem) {
    html {
        font-size: 14px;
    }

    .header-content {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    nav ul {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    nav li:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -0.75rem;
        top: 50%;
        transform: translateY(-50%);
        width: 0.0625rem;
        height: 1rem;
        background-color: #ccc;
    }

    main#featured-slider-container {
        padding: 3rem 1rem;
    }

    .image-column {
        height: 300px;
    }

    /* 小屏幕图片左边距调整 */
    .image-column img {
        margin-left: 20px;
    }

    .friend-links a {
        margin: 0 0.5rem 0.5rem;
    }

    .feature-list {
        max-width: 90%; /* 占屏幕宽度的90%，留出左右边距 */
        margin: 0 auto 1.5rem; /* 保持水平居中，减小底部间距适配移动端 */
    }

    /* 可选：移动端列表项文字稍小，提升可读性 */
    .feature-list li p {
        font-size: 0.95rem;
    }
}

@media (max-width: 22.5rem) {
    html {
        font-size: 12px;
    }

    nav a {
        font-size: 1.1rem;
    }

    nav li:not(:last-child)::after {
        right: -0.5rem;
    }
}
/* 下面是资讯动态页面和文章的独立样式 */
