/* ============================================
   KVB昆仑国际 网站样式表
   文件路径: assets/css/style.css
   ============================================ */

:root {
    --primary: #0a1e3d;
    --primary-light: #1a3a6b;
    --accent: #c9a84c;
    --accent-light: #e8d5a0;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 35px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* ========== 顶部栏 ========== */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid #eef0f4;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
}

/* 导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(10, 30, 61, 0.05);
}

.main-nav a i {
    margin-right: 5px;
    font-size: 14px;
    color: var(--accent);
}

/* 按钮 */
.btn-kvb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-kvb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 30, 61, 0.3);
}

.btn-kvb-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 7px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-kvb-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 30, 61, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #b8953a);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #b8953a, var(--accent));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* QQ联系方式 */
.qq-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 15px;
    white-space: nowrap;
}

.qq-contact a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.qq-contact a:hover {
    color: var(--primary);
}

.qq-contact i {
    color: #12b7f5;
    font-size: 16px;
}

/* ========== Hero Banner ========== */
.hero-banner {
    background: linear-gradient(135deg, #0a1e3d 0%, #1a3a6b 40%, #0d2a55 100%);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 58, 107, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-banner h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-banner h1 span {
    color: var(--accent);
}

.hero-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== 通用部分样式 ========== */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.card-kvb {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    background: #fff;
}

.card-kvb:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

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

.card-kvb .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(10, 30, 61, 0.05), rgba(10, 30, 61, 0.1));
    color: var(--primary);
}

.card-kvb .icon-box.gold {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.2));
    color: var(--accent);
}

/* ========== 产品卡片 ========== */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--accent-light);
}

.product-card .product-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card .product-header .symbol {
    font-size: 20px;
    font-weight: 700;
}

.product-card .product-header .change {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.change.up {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.change.down {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.product-card .product-body {
    padding: 18px 20px;
}

.product-card .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-card .price-info {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ========== 新闻卡片 ========== */
.news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.news-card .news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a6b, #0a1e3d);
    color: rgba(255, 255, 255, 0.6);
    font-size: 40px;
}

.news-card .news-body {
    padding: 20px;
}

.news-card .news-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.news-card .news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card .news-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== 底部 ========== */
.footer {
    background: var(--white);
    border-top: 1px solid #eef0f4;
    padding: 50px 0 30px;
    margin-top: 30px;
}

.footer .container {
    padding: 0 15px;
}

.footer h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer ul li a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer ul li a i {
    font-size: 10px;
    color: var(--accent);
}

.footer .contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer .contact-info i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #eef0f4;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 手机端固定底部按钮 ========== */
.mobile-fixed-btns {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    gap: 10px;
    border-top: 1px solid #eef0f4;
}

.mobile-fixed-btns .btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.mobile-fixed-btns .btn-open {
    background: linear-gradient(135deg, var(--accent), #b8953a);
    color: #fff;
}

.mobile-fixed-btns .btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .main-nav a {
        font-size: 13px;
        padding: 6px 12px;
        white-space: nowrap;
    }

    .btn-group-header {
        margin-left: auto;
    }

    .qq-contact {
        margin-left: 0;
        font-size: 12px;
    }

    .hero-banner h1 {
        font-size: 28px;
    }

    .hero-banner p {
        font-size: 15px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .number {
        font-size: 26px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .mobile-fixed-btns {
        display: flex;
    }

    .top-bar .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 8px 12px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
        border-radius: 8px;
    }

    .btn-group-header {
        gap: 6px;
    }

    .btn-kvb,
    .btn-kvb-outline {
        padding: 6px 14px;
        font-size: 12px;
    }

    .qq-contact {
        width: 100%;
        margin-top: 5px;
        font-size: 11px;
        gap: 10px;
    }

    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        font-size: 12px;
        padding: 5px 10px;
    }

    .hero-banner {
        padding: 50px 0 40px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .hero-banner p {
        font-size: 14px;
    }

    .hero-stats {
        gap: 15px;
    }

    .hero-stat .number {
        font-size: 22px;
    }

    .section {
        padding: 30px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .footer {
        padding: 30px 0 20px;
    }
}

@media (max-width: 480px) {
    .logo-text small {
        display: none;
    }

    .btn-kvb,
    .btn-kvb-outline {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .hero-banner h1 {
        font-size: 20px;
    }

    .hero-stat .number {
        font-size: 18px;
    }
}

/* ========== 汉堡菜单 ========== */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary);
    background: none;
    border: none;
    padding: 5px;
}

@media (max-width: 991px) {
    .hamburger-menu {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        overflow-x: visible;
    }

    .main-nav.open a {
        width: 100%;
        padding: 10px 15px;
        border-radius: 8px;
    }
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary);
}

.data-table tr:hover td {
    background: #fafbfc;
}