/* CSS变量定义 */
:root {
    /* 品牌色定义 */
    --primary-color: #1677ff;    /* 蓝色 - 主品牌色 */
    --secondary-color: #722ed1;  /* 紫色 - 辅助品牌色 */
    --accent-color: #ff4d4f;     /* 红色 - 强调色 */
    
    /* 文本颜色 */
    --text-primary: #333;
    --text-secondary: #666;
    --text-placeholder: #999;
    
    /* 背景颜色 */
    --bg-primary: #fff;
    --bg-secondary: #f5f7fa;
    
    /* 边框颜色 */
    --border-color: #d9d9d9;
    --border-light: #f0f0f0;
}

/* 统一弹窗样式 */
.unified-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.unified-popup-overlay.show {
    display: flex;
}

.unified-popup-content {
    background: white;
    border-radius: 1rem;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-2rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.popup-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #666;
}

.popup-body {
    padding: 2rem;
}

.popup-body .qrcode-content {
    text-align: center;
}

.popup-body .qrcode-image {
    margin-bottom: 1rem;
}

.popup-body .qrcode-img {
    width: 150px;
    height: 150px;
    border-radius: 0.5rem;
}

.popup-body .qrcode-text {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.popup-body .qrcode-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}


/* 基础样式 - PC优先设计 */
html {
    font-size: 62.5%; /* 1rem = 10px (基于16px的62.5%) */
    /* 与JavaScript配合，确保PC端显示精确 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    margin: 0;
    padding: 0;
    font-size: 1.4rem; /* 14px */
    line-height: 1.5;
    /* PC优先的默认样式 */
}

/* PC优先的响应式布局策略 */
/* 头部和尾部 - 自适应宽度，内部内容居中 */
.header, .footer {
    width: 100%;
}

.header-inner, .footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* 中间内容区域 - 最大宽度1440px，居中显示 */
.container, .main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.page-container {
    background: linear-gradient(129.13deg, rgba(227, 242, 250, 1) 0%, rgba(230, 236, 252, 1) 19.44%, rgba(245, 251, 255, 1) 51.38%, rgba(252, 254, 255, 1) 83%, rgba(227, 242, 250, 1) 100%);
}

/* 移动端设备适配 (<768px) - 与JS配合实现rem适配 */
@media (max-width: 767px) {
    .header-inner, .footer-inner, .container, .main-content {
        padding: 0 1rem;
    }
    
    /* 移动端通用样式调整 - 增大字体 */
    body {
        font-size: 1.4rem; /* 由于HTML font-size已增大，这里可以适当减小 */
    }
    
    /* 移动端导航链接字体 */
    .nav-link {
        font-size: 1.4rem; /* 由于HTML font-size已增大，这里可以适当减小 */
    }
    
    /* 移动端按钮字体 */
    .header-btn {
        font-size: 1.4rem; /* 由于HTML font-size已增大，这里可以适当减小 */
    }
}

/* 公共头部样式 */
.header {
    background-color: #fff;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    height: 7.8rem;
    /* border-bottom: 1px solid #f0f0f0; */
}
.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 导航栏布局 */
.navbar {
    display: flex;
    /* align-items: center; */
    padding: 1rem 0;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
}

/* Logo样式 */
.navbar-brand {
    display: flex;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 16.9rem;
    margin-right: 12px;
}
.logo-img {
    height: 5.4rem;
    width: auto;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 1.8rem; /* 18px */
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}
.logo-domain {
    font-size: 1.2rem; /* 12px */
    color: #999;
    line-height: 1;
}

/* 导航菜单 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 确保PC端导航菜单正确显示 */
@media (min-width: 769px) {
    .navbar-nav {
        display: flex !important;
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        flex-direction: row !important;
    }
}
.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 1.4rem; /* 14px */
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}
.nav-link:hover {
    color: var(--primary-color);
}
.nav-link.active {
    color: var(--primary-color);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}


.header-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 1.4rem; /* 14px */
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.login-btn {
    color: var(--primary-color);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}
.login-btn:hover {
    background-color: #f0f8ff;
    border-color: var(--primary-color);
}
.trial-btn {
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.trial-btn:hover {
    background-color: #0958d9;
    border-color: #0958d9;
}

/* 辅助品牌色按钮 */
.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #5c1eb9;
    border-color: #5c1eb9;
}

/* 强调色按钮 */
.btn-accent {
    color: #fff;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.btn-accent:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

/* 移动端菜单按钮 */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.navbar-toggler-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    position: relative;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}
.navbar-toggler-icon::before {
    top: -6px;
}
.navbar-toggler-icon::after {
    top: 6px;
}

/* 公共尾部样式 */
.footer {
    background-color: #0a1428;
    color: #a0a9be;
    padding: 40px 0;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Logo区域 */
.footer-logo-section {
    margin-bottom: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-logo-img {
    height: 5rem;
    width: auto;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
}
.copyright-text {
    font-size: 14px;
    color: #a0a9be;
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.beian-info {
    font-size: 12px;
    color: #a0a9be;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.beian-icon {
    font-size: 10px;
}
.beian-info_img {
    height: 16px;
    width: auto;
}
.beian-info a {
    color: #a0a9be;
    text-decoration: none;
    transition: color 0.3s ease;
}
.beian-info a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }
    
    .navbar-nav.show {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.8rem; /* 由于HTML font-size已增大，这里可以适当减小 */
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* PC端按钮隐藏 */
    .desktop-actions {
        display: none;
    }
    
    /* 移动端按钮显示 */
    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding: 0 20px;
        margin-top: 20px;
    }
    
    .mobile-actions .header-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .logo-title {
        font-size: 1.6rem; /* 16px */
    }
    
    .logo-domain {
        font-size: 1.1rem; /* 11px */
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-logo-text {
        font-size: 18px;
    }
    
    .copyright-text {
        font-size: 12px;
    }
    
    .beian-info {
        font-size: 11px;
    }
}