/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 军方/政府风格配色 */
    --primary-red: #C41E3A;
    --dark-red: #8B0000;
    --gold: #DAA520;
    --dark-gold: #B8860B;
    --navy: #1a1a2e;
    --dark-navy: #0f0f1a;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--dark-navy);
    min-height: 100vh;
    color: var(--white);
    line-height: 1.6;
    position: relative;
}

/* 背景图片层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./bg-military.jpeg') center center / cover no-repeat;
    opacity: 1;
    z-index: -2;
    pointer-events: none;
}

/* 背景渐变遮罩层 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(15, 15, 26, 0.5) 0%, rgba(26, 26, 46, 0.6) 40%, rgba(15, 15, 26, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* 顶部装饰 */
.top-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 15px;
}

.decoration-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#militaryBadge {
    display: block;
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.5));
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 30px 30px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-border {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border: 3px solid var(--gold);
    border-radius: 20px;
    padding: 5px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(196, 30, 58, 0.1));
    box-shadow: 
        0 0 20px rgba(218, 165, 32, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.logo-border::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 24px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Slogan样式 */
.slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.slogan-line {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.slogan-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.slogan-text {
    font-size: 15px;
    color: var(--gold);
    letter-spacing: 4px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

/* 应用介绍 */
.intro-section {
    text-align: center;
    margin-bottom: 30px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--dark-red), var(--primary-red), var(--dark-red));
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.badge-star {
    color: var(--gold);
    font-size: 12px;
}

.intro-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* 特性展示 */
.features-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

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

.feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

/* 下载区域 */
.download-section {
    margin-bottom: 40px;
}

.download-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
}

.title-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

/* 下载按钮 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.android-btn {
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 50%, #2d5016 100%);
    border: 1px solid rgba(61, 107, 31, 0.5);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.4);
}

.android-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.6);
}

.ios-btn {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 50%, var(--dark-red) 100%);
    border: 1px solid rgba(196, 30, 58, 0.5);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.ios-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.btn-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-right: 15px;
}

.btn-icon svg {
    width: 28px;
    height: 28px;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.btn-size {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.btn-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-arrow {
    transform: translateX(5px);
    color: var(--white);
}

/* 安全声明 */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
}

.notice-icon {
    color: var(--gold);
    font-size: 18px;
}

.security-notice p {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* 底部 */
.footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 20px;
}

.footer-content {
    color: rgba(255, 255, 255, 0.5);
}

.copyright {
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-note {
    font-size: 11px;
    color: var(--gold);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .main-content {
        padding: 15px 20px;
    }

    .logo-border {
        width: 100px;
        height: 100px;
    }

    .app-title {
        font-size: 26px;
        letter-spacing: 6px;
    }

    .features-section {
        gap: 20px;
    }

    .download-btn {
        padding: 15px 20px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-label {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#militaryBadge {
    animation: pulse 2s ease-in-out infinite;
}

/* 按钮点击效果 */
.download-btn:active {
    transform: scale(0.98);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid var(--gold);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.modal-header h2 {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.agreement-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.8;
}

.agreement-content h3 {
    color: var(--gold);
    font-size: 14px;
    margin: 20px 0 10px;
    letter-spacing: 1px;
}

.agreement-content h3:first-child {
    margin-top: 0;
}

.agreement-content p {
    margin: 8px 0;
}

.agreement-content ol,
.agreement-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.agreement-content li {
    margin: 6px 0;
}

.agreement-content strong {
    color: var(--white);
}

.agree-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.agree-btn:hover {
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
    transform: translateY(-2px);
}

/* 签署表单 */
.sign-form h3 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 6px;
    color: var(--white);
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.error-msg {
    color: #ff4757;
    font-size: 12px;
    margin-top: 6px;
}

.sign-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.sign-btn:hover {
    box-shadow: 0 0 15px rgba(61, 107, 31, 0.5);
    transform: translateY(-2px);
}

/* iOS安装引导弹窗 */
.ios-guide-modal {
    max-width: 420px;
}

.guide-steps {
    margin-bottom: 25px;
}

.guide-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.15);
}

.guide-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    border: 2px solid var(--gold);
}

.step-content h4 {
    color: var(--white);
    font-size: 15px;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.trust-steps {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
}

.trust-steps p {
    margin: 6px 0;
    font-size: 13px;
}

.trust-steps strong {
    color: var(--gold);
}

.install-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a6bc4 0%, #1e90ff 50%, #1a6bc4 100%);
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-radius: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.install-btn:hover {
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
    transform: translateY(-2px);
}

.install-btn span {
    font-size: 22px;
}

.guide-note {
    text-align: center;
    color: var(--gold);
    font-size: 12px;
    margin-top: 15px;
    opacity: 0.8;
}
