/* ==========================================
   易云智客官网 — 共享样式（common.css）
   导航栏、页脚、按钮、弹窗等全站通用样式
   ========================================== */

/* ==== CSS 变量 ==== */
:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --text-dark: #1e293b;
    --text-body: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(26, 86, 219, 0.2);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background: var(--white);
    padding-top: 72px;
    font-size: 15px;
}

/* ==== 导航栏 ==== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
    min-height: 72px;
    transition: var(--transition);
}

/* 桌面端：flexbox 保证 nav 菜单与 brand 水平对齐 */
@media (min-width: 768px) {
    .navbar .container {
        display: flex;
        align-items: center;
        height: 72px;
    }

    .navbar-header {
        flex-shrink: 0;
        float: none;
    }

    .navbar-header:before,
    .navbar-header:after,
    .navbar-collapse:before,
    .navbar-collapse:after {
        display: none;
    }

    .navbar-collapse.collapse {
        display: flex !important;
        justify-content: flex-start;
        flex-grow: 1;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 0;
    }

    .navbar-nav {
        float: none !important;
        display: flex;
        align-items: center;
    }

    .navbar-nav > li {
        float: none !important;
    }
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    float: none;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    padding: 10px 15px 10px 0;
    height: auto;
    line-height: 1;
}

.navbar-brand span {
    color: var(--text-dark);
    font-weight: 700;
}

.navbar-nav > li {
    width: auto;
    text-align: center;
}

.navbar-nav > li > a {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    line-height: 1.5;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav > li > a:hover {
    color: var(--primary);
    background: rgba(26, 86, 219, 0.05);
}

.navbar-nav > li.active > a {
    color: var(--primary) !important;
    background: rgba(26, 86, 219, 0.08) !important;
    font-weight: 600;
}

/* ==== 通用按钮 ==== */
.btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
}

.btn-blue::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-blue:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 22px rgba(26, 86, 219, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.btn-blue:hover::after {
    opacity: 1;
}

.btn-blue:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.2);
}

/* ==== 页面横幅（产品中心 / 关于我们） ==== */
.page-banner {
    position: relative;
    background: linear-gradient(135deg, var(--dark), #1a3a6b, var(--primary-dark));
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
}

.page-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transform: rotate(-15deg);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-banner p {
    font-size: 17px;
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ==== 通用区块 ==== */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 22px;
}

.section-title:after {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    position: absolute;
    left: 50%;
    margin-left: -25px;
    bottom: 0;
    border-radius: 2px;
}

.bg-gray {
    background: var(--gray-50);
}

/* ==== 页脚 ==== */
footer {
    background: linear-gradient(180deg, var(--dark) 0%, #0a0f1f 100%);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

footer .footer-logo {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

footer .footer-col {
    padding-top: 8px;
}

footer .footer-col h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 0.5px;
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
}

footer .footer-col ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: default;
}

footer .footer-col ul li:hover {
    color: rgba(255, 255, 255, 0.85);
}

footer .footer-qr {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-qr img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

footer .footer-qr-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.copyright a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: var(--transition-fast);
}

.copyright a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ==== 二维码弹窗 ==== */
.modal-qrcode .modal-dialog {
    width: 380px;
}

.modal-qrcode .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-qrcode .modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    color: #fff;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: none;
    padding: 20px 20px 16px;
}

.modal-qrcode .modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-qrcode .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
    font-weight: 300;
    transition: var(--transition-fast);
}

.modal-qrcode .close:hover {
    opacity: 1;
}

.modal-qrcode .qrcode-wrap {
    text-align: center;
    padding: 32px 24px 28px;
}

.modal-qrcode .qrcode-wrap img {
    width: 200px;
    height: 200px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.modal-qrcode .qrcode-tip {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==== 通用动画 ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
