/* ============================================================
   POSGE 代理商系统 - 金色奢华风格
   设计原则：高贵、温暖、统一
   ============================================================ */

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #2C1810;
    background: #FFF9F0;
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #B8860B; text-decoration: none; }
a:hover { color: #8B6914; }

img { max-width: 100%; height: auto; }

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

/* ---------- 头部 ---------- */
.site-header {
    background: linear-gradient(135deg, #1A0F0A 0%, #2C1810 100%);
    border-bottom: 1px solid rgba(184,134,11,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #E8D5A3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo span {
    color: #D4A843;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    padding: 6px 16px;
    border-radius: 4px;
    color: #C4A882;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: #E8D5A3;
    background: rgba(184,134,11,0.15);
}

.main-nav a.active {
    color: #E8D5A3;
    font-weight: 600;
    background: rgba(184,134,11,0.1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #C4A882;
    border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #1A0F0A 0%, #2C1810 50%, #1A0F0A 100%);
    color: #F5EDD6;
    padding: 80px 0 70px;
    text-align: center;
    border-bottom: 3px solid #B8860B;
    position: relative;
}

.hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
    color: #E8D5A3;
}

.hero p {
    font-size: 16px;
    color: #C4A882;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #D4A843, #B8860B);
    color: #FFF9F0;
    box-shadow: 0 2px 8px rgba(184,134,11,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E8D5A3, #D4A843);
    color: #1A0F0A;
    box-shadow: 0 4px 16px rgba(184,134,11,0.4);
}

.btn-outline {
    background: transparent;
    color: #D4A843;
    border: 1.5px solid rgba(212,168,67,0.5);
}

.btn-outline:hover {
    border-color: #D4A843;
    background: rgba(212,168,67,0.1);
    color: #E8D5A3;
}

.btn-accent {
    background: linear-gradient(135deg, #D4A843, #B8860B);
    color: #FFF9F0;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #E8D5A3, #D4A843);
    color: #1A0F0A;
}

.btn-success {
    background: linear-gradient(135deg, #7C6B2B, #5C4D1E);
    color: #F5EDD6;
}

.btn-success:hover {
    background: linear-gradient(135deg, #9A8535, #7C6B2B);
    color: #FFF9F0;
}
.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-sm { padding: 7px 18px; font-size: 13px; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: #F5EDD6; }
.section-title { text-align: center; font-size: 28px; font-weight: 700; color: #2C1810; margin-bottom: 10px; }
.section-subtitle { text-align: center; font-size: 15px; color: #8B7355; margin-bottom: 32px; line-height: 1.6; max-width: 650px; margin-left: auto; margin-right: auto; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2C1810;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-header p { color: #8B7355; font-size: 14px; }

/* ---------- 特点/服务 ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #FFF9F0;
    border-radius: 8px;
    padding: 32px 28px;
    border: 1px solid #E8D5A3;
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: #D4A843;
    box-shadow: 0 4px 20px rgba(184,134,11,0.1);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 10px;
}

.feature-card p { color: #8B7355; font-size: 14px; line-height: 1.7; }

.feature-icon {
    margin-bottom: 16px;
    color: #B8860B;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

/* ---------- 查询 ---------- */
.query-box {
    max-width: 580px;
    margin: 0 auto;
    background: #FFF9F0;
    border-radius: 8px;
    padding: 36px 32px;
    border: 1px solid #E8D5A3;
}

.query-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 6px;
}

.query-box p { color: #8B7355; font-size: 14px; margin-bottom: 20px; }

.query-form { display: flex; gap: 8px; }

.query-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #E8D5A3;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    background: #FFF9F0;
    color: #2C1810;
}

.query-form input[type="text"]:focus { border-color: #B8860B; box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }

.query-form button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #2C1810, #1A0F0A);
    color: #E8D5A3;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.query-form button:hover {
    background: linear-gradient(135deg, #5C4033, #2C1810);
    color: #F5EDD6;
}

.query-hints {
    margin-top: 14px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.query-hints > span:first-child { font-size: 13px; color: #C4A882; }

.query-hint-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #F5EDD6;
    border-radius: 4px;
    font-size: 13px;
    color: #8B7355;
    cursor: pointer;
    transition: all 0.2s;
}

.query-hint-tag:hover { background: #E8D5A3; color: #2C1810; }

/* ---------- 查询结果 ---------- */
.result-card {
    max-width: 700px;
    margin: 24px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8D5A3;
}

.result-card.authorized { border-color: #7C6B2B; }
.result-card.unauthorized { border-color: #8B2500; }

.result-header { padding: 28px; text-align: center; }
.result-card.authorized .result-header { background: #F5EDD6; }
.result-card.unauthorized .result-header { background: #FDF2F0; }

.result-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.result-card.authorized .result-header h2 { color: #7C6B2B; }
.result-card.unauthorized .result-header h2 { color: #8B2500; }
.result-header p { color: #8B7355; font-size: 14px; }

.result-body { padding: 28px; background: #FFF9F0; }

.result-table { width: 100%; border-collapse: collapse; }
.result-table tr { border-bottom: 1px solid #F5EDD6; }
.result-table tr:last-child { border-bottom: none; }
.result-table td { padding: 12px; font-size: 14px; color: #2C1810; }
.result-table td:first-child { font-weight: 600; color: #8B7355; width: 110px; font-size: 13px; }

.cert-image {
    max-width: 240px;
    margin: 16px auto;
    display: block;
    border: 1px solid #E8D5A3;
    border-radius: 4px;
}

.unauthorized-warning {
    background: #FFF9F0;
    border-left: 3px solid #B8860B;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #8B7355;
}

/* ---------- 新闻 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #FFF9F0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8D5A3;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.25s;
}

.news-card:hover { border-color: #D4A843; color: inherit; box-shadow: 0 4px 20px rgba(184,134,11,0.1); }

.news-card-image {
    height: 180px;
    background: #E8D5A3;
    background-size: cover;
    background-position: center;
}

.news-card-image:empty {
    background: #F5EDD6;
}

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

.news-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}
.news-category.company { background: #F5EDD6; color: #8B6914; }
.news-category.industry { background: #F5EDD6; color: #8B7355; }
.news-category.product { background: #F5EDD6; color: #7C6B2B; }

.news-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.news-card p {
    color: #8B7355;
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta { margin-top: 12px; font-size: 12px; color: #C4A882; display: flex; gap: 14px; }

/* 新闻详情 */
.news-detail { background: #FFF9F0; border-radius: 8px; padding: 40px; border: 1px solid #E8D5A3; }
.news-detail h1 { font-size: 24px; font-weight: 700; color: #2C1810; margin-bottom: 14px; }
.news-detail .news-meta { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #F5EDD6; }
.news-content { font-size: 15px; line-height: 2; color: #5C4033; }
.news-content h3 { margin: 28px 0 10px; font-size: 18px; color: #2C1810; font-weight: 600; }
.news-content p { margin-bottom: 14px; }
.news-content ul, .news-content ol { margin: 0 0 14px 20px; }
.news-content li { margin-bottom: 4px; }
.news-content img { border-radius: 4px; margin: 20px 0; border: 1px solid #E8D5A3; }

/* ---------- 招商页面 ---------- */
.recruit-hero {
    background: linear-gradient(135deg, #1A0F0A 0%, #2C1810 100%);
    color: #F5EDD6;
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #B8860B;
}

.recruit-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: #E8D5A3; }
.recruit-hero p { font-size: 15px; color: #C4A882; max-width: 520px; margin: 0 auto; line-height: 1.7; }

.recruit-sections { margin-top: 36px; }

.recruit-block {
    background: #FFF9F0;
    border-radius: 8px;
    padding: 32px 36px;
    margin-bottom: 20px;
    border: 1px solid #E8D5A3;
}

.recruit-block h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F5EDD6;
    color: #2C1810;
}

.recruit-block .content { font-size: 14px; line-height: 1.9; color: #5C4033; }
.recruit-block .content ul, .recruit-block .content ol { margin: 10px 0 10px 20px; }
.recruit-block .content li { margin-bottom: 6px; }
.recruit-block .content strong { color: #2C1810; }

.contact-cta {
    background: linear-gradient(135deg, #1A0F0A, #2C1810);
    color: #F5EDD6;
    text-align: center;
    padding: 44px;
    border-radius: 8px;
    border: 1px solid rgba(184,134,11,0.2);
}

.contact-cta h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #E8D5A3; }
.contact-cta p { font-size: 14px; color: #C4A882; margin-bottom: 20px; }
.contact-cta .btn { 
    background: linear-gradient(135deg, #D4A843, #B8860B);
    color: #FFF9F0; 
}
.contact-cta .btn:hover { 
    background: linear-gradient(135deg, #E8D5A3, #D4A843);
    color: #1A0F0A; 
}

/* ---------- 统计数据 ---------- */
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-stat {
    padding: 32px 16px;
    background: #FFF9F0;
    border-radius: 8px;
    border: 1px solid #E8D5A3;
}
.trust-number { font-size: 30px; font-weight: 700; color: #B8860B; line-height: 1.2; }
.trust-label { font-size: 13px; color: #8B7355; margin-top: 4px; }

/* ---------- 紧迫感条 ---------- */
.quota-bar {
    background: linear-gradient(90deg, #F5EDD6, #FFF9F0);
    padding: 8px 0;
    border-bottom: 1px solid #D4A843;
    font-size: 13px;
    color: #8B6914;
    overflow-x: auto;
    white-space: nowrap;
}

.quota-bar .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quota-text { font-weight: 600; flex-shrink: 0; }
.quota-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(184,134,11,0.1);
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 36px 0; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: 4px; background: #FFF9F0; border: 1px solid #E8D5A3;
    color: #8B7355; font-size: 14px; text-decoration: none; transition: all 0.2s;
}
.page-link:hover { border-color: #B8860B; color: #B8860B; }
.page-link.active { background: linear-gradient(135deg, #D4A843, #B8860B); color: #FFF9F0; border-color: #B8860B; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: #1A0F0A;
    color: #C4A882;
    padding: 44px 0 0;
    margin-top: auto;
    border-top: 2px solid rgba(184,134,11,0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 24px;
}

.footer-col h4 {
    color: #D4A843;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; font-size: 13px; }
.footer-col ul li a { color: #C4A882; }
.footer-col ul li a:hover { color: #E8D5A3; }
.footer-col p { font-size: 13px; line-height: 1.8; color: #C4A882; }

.footer-bottom {
    border-top: 1px solid rgba(184,134,11,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #8B7355;
}
.footer-developer {
    text-align: center;
    padding-top: 12px;
    color: #C4A882;
    font-size: 13px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}
.footer-developer a {
    color: #D4A843;
    text-decoration: underline;
}
.footer-qr-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #2C1810;
    flex-wrap: wrap;
}
.footer-qr-item {
    text-align: center;
}
.footer-qr-item img {
    width: 80px;
    height: 80px;
    border: 2px solid #E8D5A3;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.footer-qr-item img:hover {
    transform: scale(3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 100;
    position: relative;
}
.footer-qr-item span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #C4A882;
}

/* ---------- 移动端 ---------- */
.mobile-float-cta { display: none; }

@media (max-width: 768px) {
    .mobile-float-cta {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 90;
        background: linear-gradient(135deg, #B8860B, #8B6914);
        color: #FFF9F0;
        padding: 12px 32px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 4px 20px rgba(184,134,11,0.4);
        text-decoration: none;
        align-items: center;
        justify-content: center;
        gap: 6px;
        letter-spacing: 0.3px;
    }
    .mobile-float-cta:hover { color: #FFF9F0; }
    body { padding-bottom: 70px; }
}

.float-consult { display: none; }

@media (max-width: 768px) {
    .float-consult {
        display: block;
        position: fixed;
        bottom: 72px;
        right: 14px;
        z-index: 95;
    }
    .float-consult-main {
        width: 48px; height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #D4A843, #B8860B);
        color: #fff;
        border: none;
        font-size: 0;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(184,134,11,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .float-consult-main::after {
        content: '☎';
        font-size: 22px;
        color: #FFF9F0;
    }
    .float-consult-menu {
        display: none;
        position: absolute;
        bottom: 56px;
        right: 0;
        min-width: 140px;
    }
    .float-consult-menu.open { display: flex; flex-direction: column; gap: 6px; }
    .float-consult-item {
        display: flex; align-items: center; gap: 6px;
        padding: 10px 16px; border-radius: 8px; color: #FFF9F0; font-size: 13px;
        font-weight: 500; text-decoration: none;
        background: linear-gradient(135deg, #2C1810, #1A0F0A);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        white-space: nowrap;
    }
    .float-consult-item:hover { color: #E8D5A3; opacity: 1; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .features-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .query-form { flex-direction: column; }
    .query-box { padding: 24px 20px; }
    .mobile-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #1A0F0A;
        flex-direction: column;
        padding: 8px 16px;
        border-top: 1px solid rgba(184,134,11,0.2);
    }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: 10px 14px; border-radius: 4px; }
    .section { padding: 40px 0; }
    .section-header h2 { font-size: 22px; }
    .news-detail { padding: 20px; }
    .recruit-block { padding: 20px; }
    .recruit-hero h1 { font-size: 22px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .trust-stat { padding: 20px 10px; }
    .trust-number { font-size: 26px; }
    .result-table td { display: block; padding: 6px 10px; }
    .result-table td:first-child { padding-bottom: 0; font-size: 12px; }
    .result-body { padding: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-muted { color: #8B7355; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }

/* ---------- 动画 ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease-out; }
