/* 基础样式重置 */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 30px;
}

body {
    margin: 0;
    background: #06101F;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    color: #7487A3;
    font-size: 1rem;
    font-family: "Heebo", sans-serif;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* 容器居中样式 - 修正版 */
.container {
    width: 100%;
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* 修正body-wrap居中 */
.body-wrap {
    background: #06101F;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    width: 100%;
}

.boxed-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 16px 48px rgba(6,16,31,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头部样式 */
.site-header {
    padding: 24px 0;
    width: 100%;
}

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

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand.header-brand {
    display: flex;
    align-items: center;
}

.brand.header-brand h1 {
    margin: 0;
}

/* 主体部分 - 居中修正 */
main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero {
    text-align: center;
    padding: 80px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-copy {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    color: white;
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 24px;
    font-family: "Playfair Display", serif;
    width: 100%;
    text-align: center;
}

.hero-paragraph {
    font-size: 20px;
    line-height: 30px;
    color: #7487A3;
    margin-bottom: 40px;
    max-width: 600px;
    text-align: center;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 16px 32px;
    background-color: #273C5A;
    color: white !important;
    text-decoration: none !important;
    border-radius: 2px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 8px;
    text-align: center;
    min-width: 160px;
}

.button:hover {
    background: #293e5e;
}

.button-primary {
    background-color: #F9425F;
}

.button-primary:hover {
    background: #f94763;
}

.button-blue {
    background-color: #605ca8;
}

.button-blue:hover {
    background: #524d9c;
}

.button-shadow {
    position: relative;
}

.button-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 0 8px 24px rgba(6,16,31,0.25);
    mix-blend-mode: multiply;
    transition: box-shadow .15s ease;
    border-radius: 2px;
}

.button-shadow:hover::before {
    box-shadow: 0 8px 24px rgba(6,16,31,0.35);
}

/* 英雄区域CTA - 确保居中 */
.hero-cta {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
}

/* 页脚样式 */
.site-footer {
    padding: 64px 0;
    background: #0b1524;
    color: #556B8B;
    width: 100%;
    margin-top: auto;
}

.site-footer .container {
    width: 100%;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.has-top-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(39,60,90,0.1) 0, rgba(39,60,90,0.6) 50%, rgba(39,60,90,0.1) 100%);
}

.footer-brand,
.footer-links,
.footer-social-links,
.footer-copyright {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #556B8B;
    text-decoration: none;
}

.footer-links a:hover {
    color: #F9425F;
}

.footer-social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-social-links a {
    display: inline-block;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.footer-social-links a:hover {
    background: rgba(255,255,255,0.2);
}

.footer-copyright {
    font-size: 14px;
    line-height: 20px;
    color: #7487A3;
    text-align: center;
    margin-top: 24px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

/* 下载选项模态框 */
#download-options {
    display: none;
    z-index: 1000;
}

#download-options .modal-content {
    width: 320px;
}

/* 工具类 */
.list-reset {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 40px;
        padding: 0 15px;
    }
    
    .hero-paragraph {
        font-size: 18px;
        line-height: 28px;
        padding: 0 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    
    .hero-cta .button {
        margin: 8px 0;
        width: 100%;
        max-width: 280px;
    }
    
    .site-footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-copy {
        padding: 0 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 48px;
    }
}

@media (min-width: 641px) {
    .hero {
        padding: 120px 0;
    }
}

/* 动画效果 */
.is-boxed {
    background: #0b1524;
}

/* 确保SVG图标居中 */
.brand.header-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修正下载选项按钮样式 */
#download-options .button {
    display: block;
    width: 100%;
    margin: 10px 0;
}

/* 确保所有内容区域都在容器内居中 */
section {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 修正主内容区域 */
main > section > .container {
    display: flex;
    justify-content: center;
    width: 100%;
}