/* ============================================
   蓝贝雷国际安保俱乐部 - 主样式表
   ============================================ */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2540;
    --primary-light: #2c5a8a;
    --accent: #c9a961;
    --accent-light: #e0c98a;
    --bg: #f5f6f8;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部 ========== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    width: 45px;
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-cn {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-en {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(26,58,92,0.06);
}

.main-nav a.active {
    color: var(--accent);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* ========== 横幅区域 ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* ========== 主体内容 ========== */
.main-content {
    padding: 50px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.page-title .subtitle {
    color: var(--text-light);
    font-size: 16px;
}

.page-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto;
}

/* ========== 卡片/网格 ========== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 28px;
}

.card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 统计数字 ========== */
.stats-section {
    background: var(--primary-dark);
    padding: 50px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* ========== 公告列表 ========== */
.news-list {
    background: var(--white);
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.news-item-title a {
    color: var(--text);
}

.news-item-title a:hover {
    color: var(--accent);
}

.news-item-meta {
    font-size: 13px;
    color: #999;
}

.news-detail {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-detail h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.news-detail-meta {
    color: #999;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}

.news-detail-content {
    line-height: 2;
    font-size: 15px;
}

/* ========== 表单 ========== */
.form-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.form-group .required {
    color: var(--danger);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

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

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

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #b8964f;
}

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

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

/* ========== 提示框 ========== */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========== 状态标签 ========== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn, .page-num {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
}

.page-btn:hover, .page-num:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-dots {
    padding: 8px 5px;
    color: #999;
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--primary-dark);
    color: #b0c4de;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-links, .footer-contact {
    list-style: none;
}

.footer-links li, .footer-contact li {
    padding: 6px 0;
    font-size: 14px;
}

.footer-links a {
    color: #b0c4de;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* ========== 服务列表 ========== */
.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 25px;
    color: var(--white);
}

.service-card-header h3 {
    font-size: 18px;
}

.service-card-body {
    padding: 25px;
}

.service-card-body ul {
    list-style: none;
}

.service-card-body li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
}

.service-card-body li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 8px;
}

/* ========== 关于我们 ========== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 15px;
}

/* ========== 核验结果 ========== */
.verify-result {
    max-width: 600px;
    margin: 30px auto;
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none;
}

.verify-result.show {
    display: block;
}

.result-success {
    border-left: 4px solid var(--success);
}

.result-pending {
    border-left: 4px solid var(--warning);
}

.result-failed {
    border-left: 4px solid var(--danger);
}

.result-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.result-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.result-detail {
    background: var(--bg);
    border-radius: 6px;
    padding: 20px;
}

.result-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    width: 120px;
    color: var(--text-light);
    font-size: 14px;
}

.result-value {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-section {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-nav.active {
        display: block;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
