/*
 * 四川微世界检验检测有限公司 - 公共网站主样式表
 */

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

:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #e3f2fd;
    --accent: #1565c0;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f7fa;
    --bg-white: #fff;
    --border: #e0e5ec;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* === 顶部信息栏 === */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-contact span { margin-left: 20px; }

/* === 头部Logo区 === */
.header {
    background: var(--bg-white);
    padding: 20px 0;
    border-bottom: 3px solid var(--primary);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.logo:hover { color: var(--primary); }
.logo-full {
    height: 64px;
    width: auto;
    max-width: 360px;
    display: block;
}
.header-info { display: flex; gap: 24px; }
.info-item { display: flex; align-items: center; gap: 10px; }
.info-icon { font-size: 28px; }
.info-item small { display: block; font-size: 12px; color: var(--text-muted); }
.info-item strong { font-size: 15px; color: var(--primary-dark); }

/* === 主导航 === */
.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar .container { position: relative; }
.nav-menu { display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 14px 24px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.nav-menu > li > a.active { background: var(--accent); }

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 150px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.dropdown-menu li a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu li:last-child a { border-bottom: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
}

/* === 页面Banner === */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-banner h2 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { font-size: 15px; opacity: 0.85; }

/* === 首页Hero Banner === */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #061a3a 0%, #0d47a1 50%, #1565c0 100%);
    color: #fff;
    overflow: hidden;
}
.hero-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    min-height: 420px;
}
.hero-content { flex: 1; padding-right: 40px; z-index: 1; }
.hero-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}
.hero-content h2 span { color: #42a5f5; }
.hero-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* === 按钮 === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0d47a1; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(13,71,161,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }

.hero-visual {
    flex: 0 0 360px;
    text-align: center;
    position: relative;
}
.hero-circle {
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}
.hero-circle-inner {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero-circle-inner .big { font-size: 42px; font-weight: 700; }
.hero-stats { display: flex; gap: 20px; margin-top: 20px; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 700; color: #42a5f5; }
.hero-stat .label { font-size: 12px; opacity: 0.8; }

/* 粒子装饰 */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-particles .dot {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: float 6s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* === 区块标题 === */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-size: 30px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-header p { color: var(--text-light); font-size: 15px; }

/* === 核心优势区 === */
.advantages { background: var(--bg-white); }
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.adv-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
    border: 1px solid transparent;
}
.adv-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.adv-icon { font-size: 44px; margin-bottom: 14px; }
.adv-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.adv-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* === 服务卡片 === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 32px 20px;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-card .service-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}
.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.service-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}
.service-card .btn { font-size: 13px; padding: 8px 20px; }

/* === 新闻区块 === */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.news-card .news-img {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-light), #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.news-card .news-body { padding: 20px; }
.news-card h3 { font-size: 20px; margin-bottom: 10px; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.news-meta span { margin-right: 16px; }

.news-list-side { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.news-list-side .side-title { font-size: 17px; font-weight: 600; padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 12px; color: var(--primary-dark); }
.news-list-side li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.news-list-side li:last-child { border-bottom: none; }
.news-list-side li a { color: var(--text); font-size: 14px; display: flex; justify-content: space-between; }
.news-list-side li a:hover { color: var(--primary); }
.news-list-side .news-date { color: var(--text-muted); font-size: 12px; white-space: nowrap; margin-left: 10px; }

.section-more { text-align: center; margin-top: 24px; }

/* === 关于我们(首页) === */
.about-section { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
    background: var(--primary-light);
    border-radius: var(--radius);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h3 { font-size: 26px; color: var(--primary-dark); margin-bottom: 16px; }
.about-text p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 12px; }
.about-numbers { display: flex; gap: 30px; margin-top: 24px; }
.about-num { text-align: center; }
.about-num .num { font-size: 36px; font-weight: 700; color: var(--primary); }
.about-num .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* === 面包屑导航 === */
.breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text); }

/* === 内容布局（侧边栏+主体）=== */
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 40px 0; }

/* 侧边栏 */
.sidebar > div {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 12px;
    color: var(--primary-dark);
}
.sidebar-nav li { border-bottom: 1px dashed var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav li a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active { color: var(--primary); padding-left: 8px; }

/* === 新闻列表页 === */
.news-list-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}
.news-list-item:hover { box-shadow: var(--shadow-lg); }
.news-list-thumb {
    flex: 0 0 200px;
    height: 140px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
}
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-info { flex: 1; }
.news-list-info h3 { font-size: 19px; margin-bottom: 8px; }
.news-list-info h3 a { color: var(--text); }
.news-list-info h3 a:hover { color: var(--primary); }
.news-list-info .desc { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 10px; }

/* === 新闻详情页 === */
.article-detail { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.article-detail h1 { font-size: 26px; color: var(--primary-dark); margin-bottom: 14px; line-height: 1.4; }
.article-detail .article-meta {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.article-content { font-size: 15px; line-height: 1.9; color: var(--text); }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin-bottom: 14px; padding-left: 24px; }
.article-content ul { list-style: disc; }
.article-content strong { color: var(--primary-dark); }
.article-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }
.article-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-nav a { font-size: 14px; color: var(--primary); }

/* === 服务列表页 === */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-page-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.service-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-page-card .service-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}
.service-page-card .service-card-body { padding: 20px; }
.service-page-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-page-card h3 a { color: var(--text); }
.service-page-card h3 a:hover { color: var(--primary); }
.service-page-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.svc-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.svc-detail h4 { font-size: 14px; color: var(--primary); margin-bottom: 6px; }
.svc-detail ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
.svc-detail li { font-size: 13px; line-height: 1.7; color: var(--text-light); margin-bottom: 2px; }
.service-page-card .category-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
}

/* === 服务详情页 === */
.service-detail {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
.service-detail h1 { font-size: 26px; color: var(--primary-dark); margin-bottom: 16px; }
.service-detail .service-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.service-tab {
    padding: 10px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.service-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.service-tab:hover { color: var(--primary); }
.service-tab-content { display: none; font-size: 14px; line-height: 1.9; padding-top: 8px; }
.service-tab-content.active { display: block; }
.service-tab-content ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.service-tab-content li { margin-bottom: 4px; }

/* === 联系页面 === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.contact-info-cards { display: grid; gap: 16px; margin-bottom: 32px; }
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-card-icon { font-size: 32px; }
.contact-card h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--text-light); }

.contact-form-wrap {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
.contact-form-wrap h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }

/* === 表单 === */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text); }
.form-group label .required { color: #e74c3c; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,71,161,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] { width: 16px; height: 16px; }

/* 验证券码 */
.captcha-group { display: flex; gap: 12px; align-items: center; }
.captcha-group .form-control { flex: 1; }
.captcha-group img { border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; height: 40px; }

/* === 提示信息 === */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}
.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; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }

/* === 关于我们页面 === */
.about-page-content { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.about-page-content p { margin-bottom: 14px; line-height: 1.9; }
.about-page-content h3 { font-size: 22px; color: var(--primary-dark); margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.value-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
}
.value-card .v-icon { font-size: 32px; margin-bottom: 10px; }
.value-card h4 { font-size: 15px; color: var(--primary-dark); }

.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0; bottom: 0;
    width: 3px;
    background: var(--primary-light);
}
.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    width: 20px; height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}
.timeline-item .year { font-size: 13px; color: var(--accent); font-weight: 600; }
.timeline-item h4 { font-size: 16px; color: var(--primary-dark); margin: 4px 0; }
.timeline-item p { font-size: 13px; color: var(--text-light); }

/* === 分页 === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-dots { padding: 8px 4px; color: var(--text-muted); }

/* === 客户案例/合作 === */
.partners { background: var(--bg-white); }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
}
.partner-item {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-light);
}
.partner-item:hover { border-color: var(--primary); color: var(--primary); }

/* === 页脚 === */
.footer {
    background: #1a1f2b;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-col h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: #42a5f5; padding-left: 6px; }
.footer-about p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.footer-stats { display: flex; gap: 20px; font-size: 13px; }
.contact-list li { font-size: 13px !important; }
.footer-links { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
.footer-links span { color: #fff; margin-right: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); margin-right: 14px; }
.footer-links a:hover { color: #42a5f5; }
.footer-bottom {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom p { margin-bottom: 4px; }

/* === 返回顶部 === */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ============================================
   后台管理样式
   ============================================ */
.admin-body { background: #f0f2f5; }
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.admin-login-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.admin-login-box h2 { text-align: center; margin-bottom: 28px; color: var(--primary-dark); font-size: 24px; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #001529;
    color: #fff;
    flex-shrink: 0;
    padding-top: 20px;
}
.admin-sidebar h3 { padding: 12px 20px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px; }
.admin-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}
.admin-menu a:hover, .admin-menu a.active { background: var(--primary); color: #fff; }
.admin-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}
.admin-header {
    background: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-header h4 { font-size: 16px; color: var(--text); }
.admin-content { background: #fff; border-radius: var(--radius-sm); padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { background: #fafafa; font-weight: 600; color: var(--text); white-space: nowrap; }
.admin-table tr:hover td { background: #f8f9fb; }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions a, .admin-table .actions button { margin-right: 8px; font-size: 13px; }

.admin-form { max-width: 800px; }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form textarea.form-control { min-height: 300px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
}
.admin-stat .num { font-size: 32px; font-weight: 700; color: var(--primary); }
.admin-stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* 工具栏 */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-toolbar .search-box { display: flex; gap: 8px; }
.admin-toolbar .search-box input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 240px;
}
.admin-toolbar .search-box input:focus { outline: none; border-color: var(--primary); }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-dialog {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-dialog h3 { margin-bottom: 20px; color: var(--primary-dark); }

/* CKEditor 样式 */
.ck-editor__editable { min-height: 300px; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-page-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .content-layout { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-slide { flex-direction: column; text-align: center; padding: 40px 0; }
    .hero-content { padding-right: 0; }
    .hero-visual { margin-top: 24px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 10px 16px; }
    .dropdown-menu { position: static; box-shadow: none; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu { display: block; }
    .header .container { flex-direction: column; text-align: center; }
    .header-info { flex-direction: column; gap: 12px; }
    .adv-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .services-page-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .news-list-item { flex-direction: column; }
    .news-list-thumb { flex: 0 0 160px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 26px; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-toolbar { flex-direction: column; align-items: flex-start; }
    .admin-toolbar .search-box input { width: 100%; }
}
