/* style.min.css - 完整样式文件 */

/* ===== 变量定义 ===== */
:root {
    --primary: #3a7bd5;
    --secondary: #00d2ff;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --gradient-primary: linear-gradient(135deg, #3a7bd5, #00d2ff);
    --gradient-success: linear-gradient(135deg, #28a745, #20c997);
    --gradient-warning: linear-gradient(135deg, #ffc107, #fd7e14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #f5f7fa;
    line-height: 1.6;
}

/* ===== 容器布局 ===== */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== 网格系统 ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    flex: 1 0 0%;
    padding: 0 15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 767.98px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== 导航栏完整样式 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--primary);
}

.brand-icon {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.ml-auto {
    margin-left: auto;
}

/* ===== 按钮完整样式 ===== */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white !important;
    background: var(--gradient-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 123, 213, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white !important;
}

.btn-success {
    background: var(--gradient-success);
}

.btn-warning {
    background: var(--gradient-warning);
}

.btn-cancel {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--dark) !important;
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: var(--dark) !important;
}

/* 下载按钮特殊样式 */
.download-btn,
.ios-download-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.download-btn:hover,
.ios-download-btn:hover {
    background: linear-gradient(135deg, #2a6bc4, #00c2ff);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 123, 213, 0.4);
}

/* ===== 英雄区域完整样式 ===== */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 60px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 1.8rem;
}

.hero-highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ===== 下载区域完整样式 ===== */
.download-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .subtitle {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ===== 平台卡片完整样式 ===== */
.platform-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.platform-icon.windows,
.platform-icon.mac,
.platform-icon.android,
.platform-icon.ios {
    background: var(--gradient-primary);
}

.platform-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.platform-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.platform-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.platform-buttons .btn {
    flex: 1;
    min-width: 120px;
    margin: 5px 0;
}

.platform-buttons .d-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.platform-buttons .mb-2 {
    margin-bottom: 10px;
}

/* ===== 特性区域完整样式 ===== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem;
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.3);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== 下载提示样式 ===== */
.download-tips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 3rem;
}

.tip-item {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.95rem;
    background: white;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tip-item i {
    margin-right: 7px;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== 页脚完整样式 ===== */
.footer {
    background-color: white;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== 模态框完整样式 ===== */
.portal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.portal-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.portal-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.portal-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.portal-modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.portal-modal-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.portal-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-modal-header p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.5;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
    transform: rotate(90deg);
}

.portal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.portal-item {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.portal-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(58, 123, 213, 0.15);
}

.portal-item:active {
    transform: translateY(-2px);
}

.portal-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.portal-item.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-item.loading .portal-item-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(58, 123, 213, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.portal-item-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.portal-item-icon.domestic {
    background: var(--gradient-primary);
}

.portal-item-icon.overseas {
    background: var(--gradient-success);
}

.portal-item-icon.backup {
    background: var(--gradient-warning);
}

.portal-item-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.portal-item-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.portal-item-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.portal-item-badge.domestic {
    background: var(--gradient-primary);
}

.portal-item-badge.overseas {
    background: var(--gradient-success);
}

.portal-item-badge.backup {
    background: var(--gradient-warning);
}

.selection-hint {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

.portal-modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== 入口检测器样式 ===== */
.portal-detector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: var(--gray);
    z-index: 1000;
    display: none;
    border-left: 4px solid var(--primary);
}

.portal-detector.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.portal-detector .loading {
    color: var(--primary);
    font-weight: 600;
}

.portal-detector .success {
    color: var(--success);
    font-weight: 600;
}

.portal-detector .error {
    color: var(--danger);
    font-weight: 600;
}

/* ===== 辅助类 ===== */
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.w-100 { width: 100%; }

/* ===== 屏幕阅读器 ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 移动端优化 ===== */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-description {
        padding: 0 15px;
    }
    
    .download-tips {
        gap: 1rem;
        padding: 0 15px;
    }
    
    .tip-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .platform-buttons {
        flex-direction: column;
    }
    
    .platform-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-item {
        margin-left: 10px;
    }
    
    .btn, .download-btn, .ios-download-btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .platform-buttons .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .portal-detector {
        bottom: 10px;
        right: 10px;
        left: 10px;
        font-size: 0.8rem;
    }
    
    .portal-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .portal-modal-content {
        padding: 25px 20px;
        max-width: 100%;
        margin-top: auto;
        margin-bottom: auto;
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .portal-modal-header h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .portal-modal-header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .portal-list {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .portal-item {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .portal-item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .portal-item-title {
        font-size: 1.1rem;
    }
    
    .portal-item-description {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .portal-modal-footer {
        padding-top: 15px;
    }
    
    .btn-cancel {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .platform-card, .feature-card {
        padding: 20px;
    }
    
    .platform-buttons {
        gap: 0.5rem;
    }
    
    .platform-buttons .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .portal-modal {
        padding: 5px;
        padding-top: 15px;
    }
    
    .portal-modal-content {
        padding: 20px 15px;
        border-radius: 14px;
    }
    
    .portal-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .portal-modal-header p {
        font-size: 0.9rem;
    }
    
    .portal-item {
        padding: 18px 12px;
    }
    
    .portal-item-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .portal-item-title {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .portal-modal-content {
        padding: 18px 12px;
    }
    
    .portal-item {
        padding: 16px 10px;
    }
    
    .portal-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 防止移动端横向滚动 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 移动端图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 移动端表单元素优化 */
input, select, textarea {
    font-size: 16px;
}

/* 防止iOS缩放 */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea {
        font-size: 16px;
    }
    
    .portal-item {
        min-height: 60px;
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn, .portal-item, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, select, textarea, button {
        font-size: 16px !important;
    }
}