/* ==========================================
   common.css - 全站通用样式 (浅色高级版)
   包含：变量、重置、导航栏、底部、按钮、弹窗及通用组件
========================================== */

/* --- 1. 核心变量与重置 (顶级商务浅色配色) --- */
:root {
    --bg-main: #F8F9FA;       /* 珍珠灰白，极其柔和的高级底色 */
    --bg-card: #FFFFFF;       /* 纯白卡片底色 */
    --brand-dark: #1E1833;    /* 极深的牛津紫，用于底部锚定和极致对比 */
    --text-main: #231B38;     /* 深邃商务紫，替代纯黑，作为主文字色，极其沉稳 */
    --text-muted: #6B6382;    /* 紫灰色，用于次要说明文字 */
    --gold: #C19B54;          /* 哑光香槟金，降低明度以适配浅色背景 */
    --gold-hover: #D4AF6A;
    
    /* 浅色模式下的玻璃质感 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(35, 27, 56, 0.08); /* 极微弱的深紫灰色边框 */
    --glass-shadow: 0 8px 32px rgba(35, 27, 56, 0.04); /* 高级软阴影 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. 通用工具类 --- */
.text-gold { color: var(--gold); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; color: var(--brand-dark); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* 浅色玻璃拟态基础组件 (通透且带有高级软阴影) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}
.glass-panel:hover {
    border-color: rgba(193, 155, 84, 0.4); /* 悬浮时边框微微泛金 */
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(35, 27, 56, 0.08);
}

/* --- 3. 按钮特效 (尽显尊贵感) --- */
.btn-primary {
    background: var(--brand-dark); /* 主按钮使用极深紫色 */
    color: var(--gold); /* 金色文字 */
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-dark);
}
.btn-primary:hover {
    background: var(--gold);
    color: var(--brand-dark);
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(193, 155, 84, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--brand-dark);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-secondary:hover { 
    background: var(--brand-dark); 
    color: #FFFFFF; 
}

/* --- 4. 导航栏 (Header) --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(35, 27, 56, 0.03); /* 增加极其轻微的底部阴影 */
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}
.logo img { height: 40px; }
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

/* --- 5. 底部与联系方式 (全站通用) --- */
.cta-section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; text-align: center; }
.contact-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.contact-card {
    flex: 1; min-width: 280px; max-width: 350px; cursor: pointer;
    text-align: center; padding: 40px 20px; position: relative; overflow: hidden;
}
.contact-card .icon-wrap i { font-size: 2.5rem; margin-bottom: 20px; color: var(--brand-dark); transition: transform 0.3s ease; }
.contact-card:hover .icon-wrap i { transform: scale(1.1); color: var(--gold); }
.contact-card h4 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }
.contact-card .contact-detail { font-size: 1.2rem; color: var(--brand-dark); font-weight: 800; margin-bottom: 20px; word-break: break-all; }
.copy-hint {
    display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--brand-dark);
    background: rgba(35, 27, 56, 0.05); padding: 6px 16px; border-radius: 20px; transition: all 0.3s ease;
}
.contact-card:hover .copy-hint { background: var(--gold); color: #FFFFFF; box-shadow: 0 5px 15px rgba(193, 155, 84, 0.3); }

/* --- 原地复制成功的专属样式 --- */
.copy-hint.success-state {
    background: #4CAF50 !important; /* 成功绿 */
    color: #FFFFFF !important;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4) !important;
    transform: scale(1.05); /* 稍微放大一点点提示成功 */
}

/* 底部区域采用极深紫，作为页面的完美“压舱石” */
footer { background: var(--brand-dark); padding: 60px 5% 40px; text-align: center; margin-top: 50px; }
footer img { filter: brightness(0) invert(1) opacity(0.8); margin-bottom: 15px; } /* Logo转为白色并略微透明 */
footer p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* --- 6. 全局动画类 --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 7. 全局响应式适配 --- */
@media(max-width: 768px) {
    .nav-links { display: none; }
    .contact-card { min-width: 100%; }
}

/* ==========================================
   8. 全局加载动画 (Preloader)
========================================== */
/* (这部分保留) 主容器 */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-main);
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out { opacity: 0; visibility: hidden; }

.brand-loader-container { position: relative; width: 80px; height: 90px; }

/* (这部分保留) 静态猫咪图 */
.static-cat {
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; z-index: 2;
}

/* 3. 【核心修改】：在猫咪怀里旋转的单一圆圈 */
.spinning-circle {
    position: absolute;
    
    /* 保留下移的位置 */
    bottom: -12px; 
    left: 50%;
    
    /* 调整回 54px 的尺寸以匹配原图比例，你可以微调 */
    width: 58px;  
    height: 58px; 
    margin-left: -31px; /* 宽度的一半，保证居中 */
    
    z-index: 1; 
    
    /* 圆形 */
    border-radius: 50%;
    
    /* 【核心】：去掉所有实线，直接设置 6px 宽度的金色虚线 (dashed) */
    border: 6px dashed var(--gold); 
    
    /* 把旋转动画重新加回到这里 */
    animation: spin-globe 1.5s linear infinite; 
}

/* (这部分保留) 旋转动画帧 */
@keyframes spin-globe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   导航栏下拉菜单 (Dropdown Menu)
========================================== */
/* 1. 父容器设为相对定位 */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

/* 2. 让下拉箭头和文字有点间距，并加上旋转动画的准备工作 */
.dropdown-toggle i {
    font-size: 0.8em;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

/* 3. 核心：下拉菜单的精美面板 (默认隐藏) */
.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    /* 居中，并稍微往下沉一点点，准备做升起动画 */
    transform: translateX(-50%) translateY(15px); 
    
    background-color: var(--brand-dark); /* 深牛津紫底色 */
    min-width: 180px; /* 菜单的宽度 */
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 柔和的高级阴影 */
    border: 1px solid rgba(193, 155, 84, 0.15); /* 极浅的香槟金边框 */

    /* 默认完全透明且不可点击 */
    opacity: 0;
    visibility: hidden;
    /* 极其丝滑的贝塞尔曲线过渡动画 */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. 当鼠标悬停在下拉菜单区域时，显示面板 */
.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    /* 向上浮现，归位 */
    transform: translateX(-50%) translateY(10px); 
}

/* 5. 鼠标悬停时，箭头优雅地翻转 180 度 */
.nav-links .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* 6. 菜单里两个链接的样式 */
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff; 
    font-size: 0.95rem;
    text-align: left;
    transition: all 0.2s ease;
    /* 覆盖掉全局 a 标签可能带的 margin */
    margin: 0 !important; 
}

/* 7. 鼠标滑过单个选项时的香槟金高亮效果 */
.dropdown-menu a:hover {
    background-color: rgba(193, 155, 84, 0.1); /* 浅金色背景衬托 */
    color: var(--gold); /* 文字变香槟金 */
}
