/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 17px;
    color: #333;
    background: #f5f6fa;
    line-height: 1.7;
    min-height: 100vh;
}

a { text-decoration: none; color: #1a73e8; }
a:hover { color: #1557b0; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    line-height: 1.5;
}
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; }
.btn-accent { background: #f0a030; color: #fff; }
.btn-accent:hover { background: #d49020; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ========== 头部导航 ========== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 18px;
    max-width: 1100px;
    margin: 0 auto;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    white-space: nowrap;
}
.logo span { color: #f0a030; }

.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 16px;
    color: #555;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: #1a73e8; background: #e8f0fe; }

/* 手机菜单 */
.nav-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* 手机端导航覆盖层 */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 8px 18px 16px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 12px; border-bottom: 1px solid #eee; }
}

/* ========== 弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 35px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}
.modal-body h3 { font-size: 22px; margin-bottom: 10px; }
.modal-qr img {
    max-width: 200px;
    margin: 15px auto;
    border: 1px solid #eee;
    border-radius: 8px;
}
.modal-qr .qr-placeholder {
    width: 200px; height: 200px;
    margin: 15px auto;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 15px;
}
.modal-phone strong {
    font-size: 24px;
    color: #f0a030;
    display: block;
    margin: 6px 0;
}

/* ========== 页头 ========== */
.page-header {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    padding: 45px 0;
    text-align: center;
    margin-bottom: 30px;
}
.page-header h2 { font-size: 28px; margin-bottom: 8px; }
.page-header p { font-size: 16px; opacity: 0.9; }

/* ========== 首页 ========== */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #7baaf7 100%);
    color: #fff;
    text-align: center;
    padding: 60px 18px;
    margin-bottom: 30px;
}
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero p { font-size: 19px; margin-bottom: 22px; opacity: 0.9; }
.hero .btn { font-size: 18px; padding: 14px 40px; }

/* 首页统计 */
.home-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}
.stat-card {
    flex: 1;
    min-width: 140px;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    border-radius: 10px;
    padding: 28px 16px;
}
.stat-number { font-size: 40px; font-weight: 700; margin-bottom: 6px; }
.stat-label { font-size: 16px; opacity: 0.9; }

/* 首页特点 */
.home-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}
@media (max-width: 768px) { .home-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-features { grid-template-columns: 1fr; } }
.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { font-size: 44px; margin-bottom: 12px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: #666; line-height: 1.7; }

/* 首页分区 */
.home-section {
    background: #fff;
    border-radius: 10px;
    padding: 28px 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.home-section h3 {
    font-size: 21px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0a030;
    display: inline-block;
}

/* 首页公司列表 */
.home-company-list { list-style: none; }
.home-company-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.home-company-list li:last-child { border-bottom: none; }
.home-company-info strong { font-size: 17px; display: block; margin-bottom: 4px; }
.home-company-info span { font-size: 14px; color: #888; }
.home-company-price { font-size: 17px; color: #e74c3c; font-weight: 600; white-space: nowrap; }

.cta-bar {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cta-bar p { font-size: 17px; margin-bottom: 10px; }

/* ========== 公司列表 ========== */
.filter-bar {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    min-width: 70px;
    padding-top: 5px;
    white-space: nowrap;
}
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-opt {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-opt:hover { border-color: #1a73e8; color: #1a73e8; }
.filter-opt.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.filter-opt-multi.active { background: #e8f0fe; color: #1a73e8; border-color: #1a73e8; }

.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-actions .btn { padding: 8px 22px; }

/* 公司表格 */
.company-table-wrap { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th {
    background: #f8f9fc;
    padding: 14px 12px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}
.company-table td {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid #f5f5f5;
}
.company-table tr:hover td { background: #fafbfe; }
.company-table-name {
    font-weight: 600;
    color: #333;
}
.company-table-name a { color: #333; }
.company-table-name a:hover { color: #1a73e8; }

/* 新鲜度标签 */
.fresh-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}
.fresh-1 { background: #d4edda; color: #155724; }
.fresh-2 { background: #fff3cd; color: #856404; }
.fresh-3 { background: #e8f0fe; color: #1a73e8; }
.fresh-4 { background: #f5f5f5; color: #888; }

/* 移动端卡片 */
.company-cards { display: none; }
@media (max-width: 768px) {
    .company-table-wrap { display: none; }
    .company-cards { display: block; }
}
.company-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.company-card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.company-card-meta { font-size: 15px; color: #666; line-height: 1.8; }
.company-card-price { font-size: 18px; color: #e74c3c; font-weight: 600; margin-top: 8px; }
.company-card-actions { display: flex; gap: 10px; margin-top: 12px; }

/* 空状态 */
.empty-state { text-align: center; padding: 50px 0; color: #999; }
.empty-state p { font-size: 17px; margin-bottom: 10px; }

/* ========== 公司详情 ========== */
.company-detail {
    background: #fff;
    border-radius: 10px;
    padding: 30px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.company-detail h2 {
    font-size: 25px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0a030;
}
.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.detail-table th,
.detail-table td {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #eee;
    text-align: left;
}
.detail-table th {
    background: #f8f9fc;
    color: #555;
    font-weight: 600;
    width: 180px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .detail-table th { width: 100px; font-size: 14px; }
    .detail-table td { font-size: 14px; }
}
.detail-content {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 17px;
    line-height: 1.9;
}
.detail-content h3 { font-size: 20px; margin: 20px 0 12px; }
.detail-content p { margin-bottom: 12px; }
.detail-content ul, .detail-content ol { margin: 10px 0 10px 24px; }
.detail-content li { margin-bottom: 6px; }
.detail-content img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.detail-content table td,
.detail-content table th { border: 1px solid #ddd; padding: 8px 12px; font-size: 15px; }
.detail-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 28px 0;
    flex-wrap: wrap;
}

/* ========== 帮助中心 ========== */
.help-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.help-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
    user-select: none;
}
.help-title:hover { background: #fafbfe; }
.help-title::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}
.help-item.open .help-title::after { transform: rotate(-135deg); }
.help-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.help-item.open .help-content { max-height: 2000px; }
.help-content-inner {
    padding: 0 22px 22px;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}
.help-content-inner {
    padding: 0 22px 22px;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}
.help-content-inner p { margin-bottom: 10px; }
.help-content-inner h3 { font-size: 18px; margin: 16px 0 8px; }
.help-content-inner ul { margin: 8px 0 8px 20px; }

/* ========== 资讯 ========== */
.news-list { margin-bottom: 20px; }
.news-item {
    background: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.news-item:hover { transform: translateY(-2px); }
.news-item h3 { font-size: 19px; margin-bottom: 8px; }
.news-item h3 a { color: #333; }
.news-item h3 a:hover { color: #1a73e8; }
.news-summary { font-size: 16px; color: #666; margin-bottom: 8px; line-height: 1.7; }
.news-date { font-size: 14px; color: #aaa; }

/* 资讯详情 */
.article-detail {
    background: #fff;
    border-radius: 10px;
    padding: 30px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 22px;
}
.article-detail h1 { font-size: 25px; margin-bottom: 14px; }
.article-detail .article-meta { font-size: 15px; color: #aaa; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.article-detail .article-body { font-size: 17px; line-height: 2; }
.article-detail .article-body p { margin-bottom: 14px; }
.article-detail .article-body img { max-width: 100%; border-radius: 6px; }

/* ========== 联系我们 ========== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 35px;
}
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 35px 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-card-icon { font-size: 48px; margin-bottom: 14px; }
.contact-card h3 { font-size: 21px; margin-bottom: 14px; }
.contact-phone { font-size: 28px; font-weight: 700; color: #f0a030; margin: 14px 0; }
.contact-tip { font-size: 16px; color: #888; margin: 10px 0; }
.contact-qr-img { max-width: 200px; border-radius: 8px; border: 1px solid #eee; margin: 10px auto; display: block; }
.contact-qr-placeholder {
    width: 200px; height: 200px;
    margin: 10px auto;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 15px;
}

.contact-promise {
    background: #fff;
    border-radius: 10px;
    padding: 30px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-promise h3 { font-size: 21px; margin-bottom: 22px; text-align: center; }
.promise-list { display: flex; flex-direction: column; gap: 22px; }
.promise-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.promise-num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.promise-item strong { font-size: 17px; display: block; margin-bottom: 4px; }
.promise-item p { font-size: 15px; color: #666; line-height: 1.7; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
    min-width: 40px;
    text-align: center;
}
.pagination a:hover { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* ========== 底部 ========== */
.site-footer {
    background: #2c3e50;
    color: #b0bec5;
    text-align: center;
    padding: 30px 18px;
    margin-top: 45px;
    font-size: 15px;
    line-height: 2;
}
.site-footer a { color: #90caf9; }
.footer-contact { margin-bottom: 10px; }
.footer-contact strong { font-size: 19px; color: #fff; }

/* ========== 管理后台 ========== */
.admin-body { background: #f5f6fa; }

.admin-header {
    background: #2c3e50;
    color: #fff;
    padding: 0;
}
.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    flex-wrap: wrap;
}
.admin-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
    white-space: nowrap;
}
.admin-nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
}
.admin-nav a {
    padding: 8px 14px;
    font-size: 15px;
    color: #b0bec5;
    border-radius: 4px;
    white-space: nowrap;
}
.admin-nav a:hover,
.admin-nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.admin-user {
    font-size: 15px;
    color: #b0bec5;
    white-space: nowrap;
}
.admin-user a { color: #90caf9; margin-left: 8px; }
.admin-main { padding: 24px 0; }
.admin-content h3 { font-size: 22px; margin-bottom: 20px; }

@media (max-width: 768px) {
    .admin-header .container { height: auto; padding: 10px 16px; gap: 8px; }
    .admin-nav { gap: 0; }
    .admin-nav a { padding: 6px 10px; font-size: 13px; }
}

/* 后台表单 */
.admin-form { background: #fff; padding: 26px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); max-width: 750px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; color: #555; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: #1a73e8; }
.form-control-hint { font-size: 14px; color: #aaa; margin-top: 4px; }
select.form-control { height: 44px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* 后台表格 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th {
    background: #f8f9fc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    color: #555;
    border-bottom: 2px solid #eee;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; }
.admin-table tr:hover td { background: #fafbfe; }

/* 资源卡片 */
.resource-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.resource-card h4 { font-size: 18px; margin-bottom: 10px; }

.alert { padding: 12px 18px; border-radius: 6px; margin-bottom: 16px; font-size: 16px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* HTML编辑器 */
.html-editor-toolbar {
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px;
    background: #f8f9fc;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.html-editor-toolbar button {
    width: 34px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.html-editor-toolbar button:hover { background: #e8f0fe; border-color: #1a73e8; }
.html-editor-toolbar .toolbar-sep { width: 1px; background: #ddd; margin: 2px 4px; }
.html-editor-body {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    min-height: 350px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.8;
    outline: none;
    background: #fff;
    overflow-y: auto;
}
.html-editor-body:focus { border-color: #1a73e8; }
.html-editor-body blockquote {
    border-left: 3px solid #1a73e8;
    padding-left: 14px;
    color: #666;
    margin: 10px 0;
}
.html-editor-body pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 14px;
}

/* 筛选区域 */
.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.filter-section:last-child { margin-bottom: 0; }
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }

/* 公司编号 */
.company-code {
    font-size: 14px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 手机端卡片行 */
.company-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 8px;
}
.company-card-label { font-size: 14px; color: #888; min-width: 65px; }

/* 新鲜度标签变体 */
.tag-new { background: #d4edda; color: #155724; }
.tag-month { background: #fff3cd; color: #856404; }
.tag-year { background: #e8f0fe; color: #1a73e8; }
.tag-old { background: #f5f5f5; color: #888; }

/* 返回按钮 */
.btn-back {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 16px;
    color: #1a73e8;
}
.btn-back:hover { text-decoration: underline; }
