/* ============================================
   上海资质信息网 - 主样式表
   ============================================ */

:root {
    --primary: #0f2942;
    --primary-light: #1e4976;
    --accent: #c89b3c;
    --accent-light: #e6c57a;
    --bg: #f5f6f8;
    --bg-white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --shadow: 0 2px 8px rgba(15, 41, 66, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 41, 66, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

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

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

img {
    max-width: 100%;
    vertical-align: middle;
}

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

/* ===== 顶部通知栏 ===== */
.top-bar {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

/* ===== 头部 ===== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.logo-text h1 {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* 搜索框 */
.header-search {
    flex: 0 1 400px;
    display: flex;
}

.header-search input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.header-search input:focus {
    border-color: var(--primary-light);
}

.header-search button {
    padding: 0 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.header-search button:hover {
    background: var(--primary-light);
}

/* 头部右侧 */
.header-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    text-align: right;
}

.header-phone .phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.header-phone .label {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 主导航 ===== */
.main-nav {
    background: var(--primary);
}

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

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-light);
    color: #fff;
}

.main-nav a.highlight {
    background: var(--accent);
    color: var(--primary);
}

.main-nav a.highlight:hover {
    background: var(--accent-light);
}

/* ===== Hero 区域 ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="rgba(255,255,255,0.03)" d="M20,20 L80,20 L80,80 L20,80 Z M120,120 L180,120 L180,180 L120,180 Z M60,120 L100,120 L100,160 L60,160 Z"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

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

.hero p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 155, 60, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== 统计数据条 ===== */
.stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}

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

.stat-item .num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .num span {
    color: var(--accent);
    font-size: 16px;
    margin-left: 2px;
}

.stat-item .label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== 通用区块 ===== */
.section {
    padding: 60px 0;
}

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

.section-title h3 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 15px;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.service-card h4 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* ===== 两栏布局 ===== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* ===== 内容卡片 ===== */
.content-card {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-left: 14px;
}

.card-header h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.card-header .more {
    font-size: 13px;
    color: var(--text-light);
}

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

/* ===== 新闻列表 ===== */
.news-list {
    list-style: none;
}

.news-list li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.news-list .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

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

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

.news-list .date {
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
}

.news-list .badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 8px;
}

.badge-hot {
    background: #fed7d7;
    color: #c53030;
}

.badge-new {
    background: #bee3f8;
    color: #2b6cb0;
}

/* ===== 转让列表 ===== */
.transfer-list {
    display: grid;
    gap: 20px;
}

.transfer-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--accent);
}

.transfer-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.transfer-item .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.transfer-item .title a {
    color: var(--primary);
}

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

.transfer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.transfer-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.transfer-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.transfer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.transfer-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.transfer-price small {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-light);
}

/* ===== 流程步骤 ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step .num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.process-step h5 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.process-step p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== CTA 区块 ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

/* ===== 侧边栏 ===== */
.sidebar-widget {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.sidebar-widget .widget-title {
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-widget .widget-body {
    padding: 20px;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #0a1f33;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    margin-top: 60px;
}

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

.footer-col h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-col ul li 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;
    color: rgba(255, 255, 255, 0.5);
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination span {
    color: var(--text-light);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-light);
}

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

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 文章详情 ===== */
.article-detail {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.article-detail h1 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
}

.article-content p {
    margin-bottom: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 16px;
    }
    .header-search {
        width: 100%;
    }
    .main-nav ul {
        flex-wrap: wrap;
    }
    .main-nav a {
        padding: 12px 16px;
        font-size: 14px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 50px 0;
    }
    .hero h2 {
        font-size: 26px;
    }
    .article-detail {
        padding: 20px;
    }
}
