/* ===== 全局变量 ===== */
:root {
    --primary: #0a2540;
    --primary-light: #2a3f5e;
    --primary-dark: #051a2b;
    --accent: #b7975c;
    --accent-light: #d4b37a;
    --accent-dark: #9a7b44;
    --gold: #c6a15b;
    --text-dark: #1a2b3c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f0f4fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 5px 10px -5px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.15);
    --shadow-xl: 0 30px 60px -15px rgba(0,0,0,0.2);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-secondary: 'Playfair Display', 'Times New Roman', serif;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(145deg, #f2f6fc 0%, #e9eff7 100%);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===== 水印 ===== */
body::after {
    content: "海燕策略研究论坛";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(40px, 15vw, 140px);
    font-weight: bold;
    color: rgba(169, 169, 169, 0.12);
    white-space: pre;
    transform: rotate(-25deg) scale(1.5);
    font-family: var(--font-secondary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 6px;
    text-wrap: nowrap;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    position: relative;
    z-index: 10;
    flex: 1;
}

/* ===== 头部区域 ===== */
.site-header {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 35px 40px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(183, 151, 92, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header:hover {
    box-shadow: var(--shadow-xl);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}

.site-header::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(183,151,92,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.site-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffffff, #f8fafd);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(183,151,92,0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.site-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
	border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-title {
    flex: 1;
}

.site-title h1 {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.site-title h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.site-description {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-top: 10px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    font-style: italic;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    min-width: 220px;
    position: relative;
    z-index: 2;
}

/* ===== 评分卡片 ===== */
.rating-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.rating-badge i {
    font-size: 28px;
    color: var(--gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.rating-badge-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.rating-badge-label {
    font-size: 13px;
    opacity: 0.8;
    letter-spacing: 0.5px;
    width: 100%;
    font-style: italic;
}

.rating-badge-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-secondary);
}

.rating-badge-value small {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 3px;
}

/* ===== 客服卡片（深蓝色渐变背景）===== */
.customer-service-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.customer-service-badge i {
    font-size: 24px;
    color: var(--gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.customer-service-badge a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.customer-service-badge a:hover {
    color: var(--gold);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    margin-left: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===== 备用域名区域 ===== */
.domain-section {
    background: linear-gradient(135deg, #1a314d 0%, #213a5a 100%);
    border-radius: var(--border-radius-lg);
    padding: 25px 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.domain-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(183,151,92,0.1));
}

.domain-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.domain-title i {
    font-size: 28px;
    color: var(--gold);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.domain-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: white;
    font-family: var(--font-secondary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-style: italic;
}

.domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.domain-item {
    flex: 1 1 auto;
    min-width: 150px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.05);
}

.domain-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: white;
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(183,151,92,0.2);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.domain-link i {
    font-size: 14px;
    color: var(--gold);
    transition: transform 0.2s;
}

.domain-link:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(10,37,64,0.4);
    border-color: transparent;
}

.domain-link:hover i {
    transform: translateX(5px);
    color: white;
}

/* ===== 分类区域 ===== */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--accent);
}

.category-header img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-secondary);
    flex: 1;
    font-style: italic;
}

.category-header .badge {
    background: linear-gradient(135deg, var(--gold) 0%, #d4b37a 100%);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(183,151,92,0.3);
}

/* ===== 内容卡片网格 ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.content-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(183,151,92,0.2);
}

/* 修改card-header样式，使其支持flex布局 */
.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 18px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 调整card-header中的h3样式 */
.card-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
    margin: 0;  /* 移除默认margin */
}

/* card-header中的徽章样式 */
.card-header .badge {
    background: linear-gradient(135deg, var(--gold) 0%, #d4b37a 100%);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(183,151,92,0.3);
    margin-left: auto;  /* 确保靠右 */
    white-space: nowrap; /* 防止文字换行 */
}

.card-header::after {
    display: none;
}

.card-header h3 img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.card-body {
    padding: 20px;
}

/* ===== 参数网格 ===== */
.param-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.param-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafd;
    border-radius: 30px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.param-item:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(10,37,64,0.02) 0%, rgba(42,63,94,0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -6px rgba(10,37,64,0.15);
}

.param-item:hover .param-name {
    color: var(--primary);
    font-weight: 600;
}

.param-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
}

.param-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
    background: #f8fafd;
    border-radius: var(--border-radius-md);
}

.empty-state i {
    font-size: 40px;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    font-style: italic;
}

/* ===== 装饰元素 ===== */
.decor-circle {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.decor-circle-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(183,151,92,0.08) 0%, transparent 70%);
}

.decor-circle-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(10,37,64,0.08) 0%, transparent 70%);
}

/* ===== 动画 ===== */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 页脚样式 ===== */
.site-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    border-top: 3px solid var(--gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--gold);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 12px;
    color: var(--gold);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.contact-info i {
    color: var(--gold);
    font-size: 16px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.copyright a {
    color: var(--gold);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* 页脚响应式 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .site-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .site-title h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-description {
        border-left: none;
        border-top: 3px solid var(--accent);
        padding-left: 0;
        padding-top: 12px;
        text-align: left;
    }
    
    .header-right {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .rating-badge, .customer-service-badge {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .site-header {
        padding: 25px 20px;
    }
    
    .site-logo {
        width: 80px;
        height: 80px;
    }
    
    .site-title h1 {
        font-size: 28px;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .rating-badge, .customer-service-badge {
        width: 100%;
    }
    
    .domain-list {
        flex-direction: column;
    }
    
    .domain-item {
        width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-wrap: wrap;
    }
    
    .category-header h2 {
        font-size: 20px;
    }
}

/* ===== 字体导入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');