/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333; line-height: 1.6; background-color: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 主题色 ===== */
:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --accent: #f26c4f;
    --accent-dark: #d84a2e;
    --text-dark: #222;
    --text-muted: #666;
    --text-light: #999;
    --border: #eee;
    --bg-light: #f8f9fa;
}

/* ===== 头部导航 ===== */
header {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 15px 0; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: bold; color: var(--accent); letter-spacing: 1px; }
.logo span { color: var(--text-dark); }
.nav-menu { display: flex; gap: 30px; font-size: 14px; color: var(--text-muted); }
.nav-menu a { padding: 5px 0; transition: color 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }

/* ===== Hero Banner ===== */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #1a237e 100%);
    color: #fff; padding: 80px 0; position: relative;
}
.hero-content { display: flex; justify-content: space-between; align-items: center; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 48px; font-weight: normal; margin-bottom: 20px; }
.hero-text p { font-size: 20px; color: #ddd; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 15px; }
.btn-primary {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 12px 32px; font-size: 15px; transition: all 0.3s; border: none;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
    display: inline-block; background: transparent; color: #fff;
    padding: 12px 32px; font-size: 15px; border: 1px solid #fff; transition: all 0.3s;
}
.btn-outline:hover { background: #fff; color: var(--primary); }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img {
    max-width: 90%; height: auto; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2); padding: 10px; border-radius: 4px;
}

/* ===== 三列特性区域 ===== */
.features { display: flex; margin-top: -40px; position: relative; z-index: 10; }
.feature-box { flex: 1; padding: 40px 30px; color: #fff; transition: transform 0.3s; }
.feature-box:hover { transform: translateY(-5px); }
.feature-box h3 { font-size: 24px; margin-bottom: 15px; }
.feature-box p { font-size: 14px; line-height: 1.8; margin-bottom: 25px; opacity: 0.9; }
.feature-btn {
    display: inline-block; border: 1px solid #fff; padding: 8px 25px;
    font-size: 14px; transition: all 0.3s;
}
.feature-btn:hover { background: #fff; color: #333; }
.bg-blue { background-color: var(--primary); }
.bg-orange { background-color: var(--accent); }

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; color: var(--text-dark); }
.section-title .subtitle { color: var(--text-muted); font-size: 15px; display: block; }
.section-title .divider {
    width: 40px; height: 3px; background: var(--accent);
    margin: 15px auto 0;
}

/* ===== 关于区 ===== */
.about-inner { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-size: 32px; margin-bottom: 10px; }
.about-text .subtitle { color: var(--text-muted); margin-bottom: 20px; display: block; }
.divider { width: 40px; height: 3px; background: var(--primary); margin-bottom: 20px; }
.about-text p { color: #555; font-size: 15px; margin-bottom: 30px; line-height: 1.8; }
.btn-more {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 10px 30px; transition: opacity 0.3s;
}
.btn-more:hover { opacity: 0.85; }
.about-image { flex: 1.2; }
.about-image img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* ===== 数据统计 ===== */
.stats-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    padding: 60px 0; color: #fff;
}
.stats-inner { display: flex; justify-content: space-around; }
.stat-item { text-align: center; flex: 1; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-item h3 { font-size: 56px; font-weight: bold; margin-bottom: 5px; }
.stat-item p { font-size: 15px; opacity: 0.9; }

/* ===== 产品展示 ===== */
.tabs {
    display: flex; justify-content: center; gap: 40px; margin-bottom: 40px;
    border-bottom: 1px solid var(--border); padding-bottom: 15px;
}
.tabs a {
    cursor: pointer; font-size: 16px; color: var(--text-muted);
    padding: 0 10px; padding-bottom: 13px; transition: color 0.3s;
}
.tabs a:hover { color: var(--primary); }
.tabs a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.product-card {
    background: #fff; padding: 0; box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border-radius: 6px; overflow: hidden; transition: all 0.3s;
}
.product-card:hover {
    transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-img {
    height: 180px; display: flex; align-items: center; justify-content: center;
    color: #fff; overflow: hidden; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h4 { font-size: 17px; color: var(--text-dark); margin-bottom: 8px; }
.product-info .product-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.product-info .product-cat {
    display: inline-block; font-size: 12px; color: var(--primary);
    background: rgba(26,35,126,0.08); padding: 3px 10px; border-radius: 12px;
}

/* ===== 产品详情页 ===== */
.product-detail { padding: 60px 0; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--accent); }
.product-detail-header {
    display: flex; gap: 40px; margin-bottom: 50px; padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.product-detail-image {
    flex: 1; background: var(--bg-light); border-radius: 6px;
    overflow: hidden; min-height: 300px;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { flex: 1.3; }
.product-detail-info h1 { font-size: 32px; margin-bottom: 10px; }
.product-detail-info .version {
    display: inline-block; font-size: 13px; color: #fff; background: var(--accent);
    padding: 3px 12px; border-radius: 12px; margin-bottom: 20px;
}
.product-detail-info .desc { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; line-height: 1.8; }
.product-tags { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.product-tag {
    display: inline-block; font-size: 13px; font-weight: 500;
    padding: 5px 14px; border-radius: 6px;
    border: 1px solid transparent; transition: all 0.2s;
}
.product-tag.tag-open {
    background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9;
}
.product-tag.tag-pro {
    background: #e3f2fd; color: #1565c0; border-color: #bbdefb;
}
.product-tag.tag-version {
    background: #f3e5f5; color: #6a1b9a; border-color: #e1bee7;
}
.product-tag.tag-category {
    background: #fff3e0; color: #e65100; border-color: #ffe0b2;
}
.product-tag:hover { opacity: 0.85; transform: translateY(-1px); }
.feature-list { margin-bottom: 30px; }
.feature-list li {
    padding: 8px 0 8px 25px; position: relative; color: #555;
}
.feature-list li::before {
    content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold;
}
.product-actions { display: flex; gap: 15px; }

/* ===== product-content 扩展样式（表格/代码/引用等） ===== */
.product-content table {
    width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}
.product-content thead { background: var(--bg-light); }
.product-content th {
    padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-dark);
    border-bottom: 2px solid var(--border); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.product-content td {
    padding: 10px 12px; border-bottom: 1px solid var(--border); color: #555;
}
.product-content tr:hover { background: var(--bg-light); }
.product-content hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.product-content h4 { font-size: 18px; margin: 25px 0 10px; color: var(--text-dark); }
.product-content code {
    background: var(--bg-light); padding: 2px 6px; border-radius: 4px;
    font-size: 13px; color: var(--accent);
}
.product-content pre {
    background: #1f2129; color: #ccc; padding: 15px; border-radius: 8px;
    overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 15px 0;
}
.product-content pre code { background: none; padding: 0; color: inherit; }
.product-content blockquote {
    border-left: 4px solid var(--accent); padding: 10px 20px; margin: 15px 0;
    background: var(--bg-light); border-radius: 0 8px 8px 0; color: #555;
}
.product-content a { color: var(--primary); text-decoration: underline; }

/* ===== 详情页选项卡 ===== */
.detail-tabs { margin-top: 40px; }
.detail-tabs input[type="radio"] { display: none; }
.tab-buttons {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}
.tab-btn {
    padding: 12px 24px; font-size: 15px; font-weight: 500;
    color: var(--text-muted); cursor: pointer;
    border: 1px solid transparent; border-bottom: none;
    background: var(--bg-light); margin-bottom: -2px;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); background: #f0f3ff; }
#tabIntro:checked ~ .tab-buttons label[for="tabIntro"],
#tabImages:checked ~ .tab-buttons label[for="tabImages"],
#tabTutorial:checked ~ .tab-buttons label[for="tabTutorial"],
#tabTech:checked ~ .tab-buttons label[for="tabTech"] {
    color: var(--primary); background: #fff;
    border-color: var(--border);
    border-bottom-color: #fff;
    font-weight: 600;
}
.tab-content {
    background: #fff; border: 1px solid var(--border);
    border-top: none; border-radius: 0 0 8px 8px;
    padding: 30px;
}
.tab-pane { display: none; }
#tabIntro:checked ~ .tab-content #paneIntro,
#tabImages:checked ~ .tab-content #paneImages,
#tabTutorial:checked ~ .tab-content #paneTutorial,
#tabTech:checked ~ .tab-content #paneTech {
    display: block;
}
.tab-pane h3 { font-size: 22px; margin-bottom: 20px; color: var(--text-dark); }
.tech-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tech-tag {
    display: inline-block; font-size: 13px; padding: 6px 15px;
    background: var(--bg-light); color: var(--text-dark);
    border: 1px solid var(--border); border-radius: 6px;
    transition: all 0.2s;
}
.tech-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-content { line-height: 1.9; color: #444; }
.product-content h3 { font-size: 22px; margin: 30px 0 15px; color: var(--text-dark); }
.product-content p { margin-bottom: 15px; }
.product-content ol {
    list-style: decimal outside;
    padding-left: 2.5em;
    margin-bottom: 15px;
}
.product-content ul {
    list-style: disc outside;
    padding-left: 2.5em;
    margin-bottom: 15px;
}
.product-content li {
    margin-bottom: 8px;
}
.product-content ol ol {
    padding-left: 2em;
}
.product-content ul ul {
    padding-left: 2em;
}
.product-content a { color: var(--primary); text-decoration: underline; }

/* ===== 企业级解决方案 ===== */
.solutions-inner { display: flex; gap: 50px; align-items: center; }
.solutions-image { flex: 1.2; }
.solutions-image img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.solutions-text { flex: 1; }
.solutions-text h2 { font-size: 28px; margin-bottom: 5px; }
.solutions-text .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; display: block; }
.solutions-text p { color: #555; font-size: 15px; margin-bottom: 15px; line-height: 1.8; }

/* ===== 新闻区 ===== */
.news-inner { display: flex; gap: 40px; }
.news-featured { flex: 1; }
.news-featured-card {
    background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: relative; border-radius: 6px; overflow: hidden;
}
.news-featured-card img { width: 100%; height: auto; display: block; }
.news-date {
    position: absolute; top: 0; left: 0; background: var(--accent); color: #fff;
    padding: 10px 15px; text-align: center; line-height: 1.2;
}
.news-date .day { display: block; font-size: 24px; font-weight: bold; }
.news-featured-content { padding: 20px; }
.news-featured-content h3 { font-size: 18px; color: var(--accent); margin-bottom: 10px; }
.news-featured-content p { font-size: 14px; color: var(--text-muted); }

.news-list { flex: 1; }
.news-item {
    display: flex; gap: 15px; margin-bottom: 25px; background: #fff;
    padding: 15px; box-shadow: 0 1px 8px rgba(0,0,0,0.04); border-radius: 4px;
    transition: all 0.3s;
}
.news-item:hover { box-shadow: 0 3px 15px rgba(0,0,0,0.08); }
.news-item-img { width: 140px; flex-shrink: 0; }
.news-item-img img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; }
.news-item-content h4 { font-size: 15px; margin-bottom: 8px; color: var(--text-dark); }
.news-item-content h4 a:hover { color: var(--accent); }
.news-item-content p {
    font-size: 13px; color: var(--text-light); margin-bottom: 8px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta { font-size: 12px; color: var(--text-light); }
.news-meta i { margin-right: 5px; margin-left: 15px; }
.news-meta i:first-child { margin-left: 0; }

/* ===== 新闻详情 ===== */
.news-detail { padding: 60px 0; }
.news-detail-header { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.news-detail-header h1 { font-size: 30px; margin-bottom: 15px; }
.news-detail-meta { color: var(--text-muted); font-size: 14px; }
.news-detail-meta span { margin: 0 10px; }
.news-detail-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
    color: #444;
    padding: 0 20px;
}
.news-detail-content .news-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}
.news-detail-content h1 { font-size: 28px; margin: 30px 0 15px; }
.news-detail-content h2 { font-size: 24px; margin: 25px 0 12px; }
.news-detail-content h3 { font-size: 22px; margin: 25px 0 12px; color: var(--text-dark); }
.news-detail-content h4 { font-size: 18px; margin: 20px 0 10px; color: var(--text-dark); }
.news-detail-content p { margin-bottom: 15px; }
.news-detail-content ul, .news-detail-content ol { padding-left: 2em; margin-bottom: 15px; }
.news-detail-content li { margin-bottom: 6px; }
.news-detail-content table {
    width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
}
.news-detail-content thead { background: var(--bg-light); }
.news-detail-content th {
    padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-dark);
    border-bottom: 2px solid var(--border); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.news-detail-content td {
    padding: 10px 12px; border-bottom: 1px solid var(--border); color: #555;
}
.news-detail-content tr:hover { background: var(--bg-light); }
.news-detail-content pre {
    background: #1f2129; color: #ccc; padding: 15px; border-radius: 8px;
    overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 15px 0;
}
.news-detail-content pre code { background: none; padding: 0; color: inherit; }
.news-detail-content code {
    background: var(--bg-light); padding: 2px 6px; border-radius: 4px;
    font-size: 13px; color: var(--accent);
}
.news-detail-content blockquote {
    border-left: 4px solid var(--accent); padding: 12px 20px; margin: 15px 0;
    background: var(--bg-light); border-radius: 0 8px 8px 0; color: #555;
}
.news-detail-content hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.news-detail-content img:not(.news-cover) {
    border-radius: 6px; margin: 15px 0;
}
.news-detail-content a { color: var(--primary); text-decoration: underline; }
.news-detail-content strong { color: var(--text-dark); }
.news-detail-content em { font-style: italic; }

/* 新闻导航 */
.news-nav { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.news-nav-inner { display: flex; gap: 30px; justify-content: space-between; }
.news-nav-item { flex: 1; }
.news-nav-next { text-align: right; }
.news-nav-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.news-nav-item a { color: var(--primary); font-weight: 500; }
.news-nav-item a:hover { text-decoration: underline; }

/* ===== 联系我们 ===== */
.contact-inner { display: flex; gap: 50px; }
.contact-info { flex: 1; }
.contact-info h3 { font-size: 22px; margin-bottom: 25px; }
.contact-item {
    display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start;
}
.contact-item .icon {
    width: 45px; height: 45px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.contact-item .info h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 5px; }
.contact-item .info p { color: var(--text-muted); font-size: 14px; }

.contact-form { flex: 1.2; background: #fff; padding: 35px; border-radius: 6px; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-dark); }
.form-control {
    width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 14px; font-family: inherit; transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.validation-msg { color: #d32f2f; font-size: 13px; margin-top: 5px; }
.success-msg {
    background: #e8f5e9; color: #2e7d32; padding: 12px 20px;
    border-radius: 4px; margin-bottom: 20px;
}

/* ===== 页脚 ===== */
footer { background: #1f2129; color: #ccc; padding: 60px 0 20px; font-size: 14px; }
.footer-inner {
    display: flex; gap: 50px; margin-bottom: 40px;
    border-bottom: 1px solid #3a3d47; padding-bottom: 40px;
}
.footer-col { flex: 1; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li i { margin-right: 8px; }
.footer-col a:hover { color: #fff; }
.footer-logo { color: var(--accent); font-size: 24px; font-weight: bold; margin-bottom: 20px; display: block; }
.copyright { text-align: center; font-size: 12px; color: #888; line-height: 1.8; }
.copyright a { color: #888; margin: 0 10px; }
.copyright a:hover { color: #ccc; }

/* ===== 浮动按钮 ===== */
.chat-bubble {
    position: fixed; bottom: 40px; right: 20px; width: 50px; height: 50px;
    background: var(--primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; font-size: 22px;
    transition: all 0.3s; z-index: 99;
}
.chat-bubble:hover { background: var(--accent); transform: scale(1.05); }

/* ===== 管理员登录页优化 ===== */
.login-wrapper {
    width: 100%; max-width: 480px; margin: 0 auto;
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(26,35,126,0.3);
}
.login-logo i { font-size: 28px; color: #fff; }
.login-header h1 { font-size: 26px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.login-header p { color: rgba(255,255,255,0.7); margin: 0; font-size: 14px; }
.login-card {
    background: #fff; border-radius: 16px; padding: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.login-error {
    background: #fef0f0; color: #d32f2f; padding: 12px 16px;
    border-radius: 8px; margin-bottom: 20px; font-size: 14px;
    display: flex; align-items: center; gap: 8px;
}
.login-card .form-group { margin-bottom: 20px; }
.login-card .form-group label {
    display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-dark);
}
.login-card .form-control {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 15px; font-family: inherit;
    transition: all 0.2s; box-sizing: border-box;
}
.login-card .form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}
.login-card .btn-primary {
    width: 100%; padding: 14px; border: none; cursor: pointer;
    border-radius: 8px; font-size: 16px; font-weight: 600; margin-top: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; transition: all 0.2s;
}
.login-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,35,126,0.3);
}
.login-footer {
    text-align: center; margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.login-footer a { color: var(--text-muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.copyright { text-align: center; color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 20px; }

/* ===== 后台管理布局 ===== */
.admin-header {
    background: #2c3e50; color: #fff; padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.admin-container {
    max-width: 1400px; margin: 0 auto; padding: 0 24px;
}
.admin-header .admin-container { display: flex; justify-content: space-between; align-items: center; }
.admin-header .logo { 
    color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 0.5px; 
}
.admin-header .logo span { font-weight: 400; color: rgba(255,255,255,0.7); }
.admin-nav { display: flex; gap: 8px; }
.admin-nav a {
    display: flex; align-items: center; gap: 8px;
    color: #ecf0f1; font-size: 14px; font-weight: 500;
    padding: 10px 16px; border-radius: 8px;
    transition: all 0.2s; white-space: nowrap;
}
.admin-nav a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-nav a.active:hover { background: var(--accent-dark); }

.admin-main { padding: 32px 0; min-height: calc(100vh - 120px); }
.admin-container { max-width: 1800px; margin: 0 auto; padding: 0 24px; }

.admin-card {
    background: #fff; padding: 32px; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 24px;
}
.admin-card h3 { 
    font-size: 20px; font-weight: 600; margin-bottom: 24px; color: var(--text-dark);
    padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block;
}

/* 表格样式优化 */
.admin-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-table th, .admin-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-table th:last-child, .admin-table td:last-child {
    min-width: 260px; width: 260px;
}
.admin-table th { 
    background: var(--bg-light); font-weight: 600; color: var(--text-dark); 
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-table tr:hover { background: var(--bg-light); }
.admin-table td { color: var(--text-dark); }
.admin-actions { display: flex; gap: 8px; white-space: nowrap; flex-wrap: nowrap; }
.btn-sm {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; font-size: 13px; font-weight: 500;
    border-radius: 6px; border: none; cursor: pointer;
    transition: all 0.2s;
}
.btn-edit { background: var(--primary); color: #fff; }
.btn-edit:hover { background: var(--primary-light); }
.btn-delete { background: #d32f2f; color: #fff; }
.btn-delete:hover { background: #c62828; }
.btn-view { background: var(--accent); color: #fff; }
.btn-view:hover { background: var(--accent-dark); }

/* 表单布局优化 */
.form-section {
    margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-title {
    font-size: 15px; font-weight: 600; color: var(--text-dark);
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.form-section-title i { color: var(--accent); }
.form-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 28px;
}
.form-group { margin-bottom: 0; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--text-dark);
}
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    transition: all 0.2s; box-sizing: border-box; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,0.1); }
.form-control[readonly] { background: var(--bg-light); color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.validation-msg { color: #d32f2f; font-size: 12px; margin-top: 6px; display: block; }
.help-text { color: var(--text-muted); font-size: 12px; margin-top: 6px; display: block; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 4px; }
.checkbox-label {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 14px; color: var(--text-dark); line-height: 1.2;
}
.checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer;
    flex-shrink: 0; margin-top: 0; vertical-align: middle;
}
.checkbox-label strong, .checkbox-label span {
    display: inline-block; vertical-align: middle; line-height: 1.2;
}

/* 按钮组 */
.btn-group { display: flex; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; font-size: 14px; font-weight: 500; border-radius: 8px;
    border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,35,126,0.3); }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-secondary:hover { background: var(--bg-light); }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-light); color: var(--text-dark); }

/* 验证摘要 */
.validation-summary { color: #d32f2f; font-size: 13px; margin-bottom: 20px; padding: 12px 16px; background: #fef0f0; border-radius: 8px; }
.validation-summary ul { margin: 0; padding-left: 20px; }
.validation-summary li { margin-bottom: 4px; }

/* 响应式 */
@media (max-width: 1024px) {
    .admin-container { max-width: 100%; padding: 0 16px; }
    .form-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .admin-header .admin-container { flex-direction: column; gap: 16px; }
    .admin-nav { flex-wrap: wrap; justify-content: center; }
    .admin-nav a { padding: 8px 12px; font-size: 13px; }
    .admin-main { padding: 20px 0; }
    .admin-card { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-card h3 { font-size: 18px; }
    .btn-group { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
}

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-muted); font-size: 14px;
}
.pagination a:hover, .pagination a.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* 空数据 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 50px; margin-bottom: 15px; color: var(--text-light); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav-menu { flex-wrap: wrap; justify_content: center; gap: 15px; }
    .hero { padding: 50px 0; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 32px; }
    .hero-actions { justify-content: center; }
    .hero-image { justify-content: center; margin-top: 30px; }
    .features { flex-direction: column; margin-top: 0; }
    .about-inner, .solutions-inner, .news-inner, .footer-inner, .contact-inner { flex-direction: column; }
    .stats-inner { flex-direction: column; gap: 30px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news-featured { width: 100%; }
    .section { padding: 50px 0; }
    .product-detail-header { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
}

/* ===== 仪表盘统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align_items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.stat-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align_items: center; justify-content: center;
    font-size: 24px; color: #fff; flex-shrink: 0;
}
.stat-primary .stat-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-accent .stat-icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.stat-info .stat-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-warning .stat-icon { background: linear-gradient(135deg, #ff9800, #f57c00); }

.stat-content { flex: 1; min-width: 0; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-dark); margin: 0 0 4px; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); margin: 0; }

/* 仪表盘两栏网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* 卡片头部 */
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.card-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-dark); }
.card-more { font-size: 13px; color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* 徽章样式 */
.badge {
    display: inline-flex; align-items: center; padding: 3px 8px;
    border-radius: 12px; font-size: 11px; font-weight: 600;
}
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #fef0f0; color: #d32f2f; }

/* 快捷操作 */
.quick-actions {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.quick-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 16px; background: #fff; border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-dark); text-decoration: none;
    transition: all 0.2s;
}
.quick-btn:hover {
    border-color: var(--primary); background: var(--bg-light); color: var(--primary);
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.quick-btn i { font-size: 22px; color: var(--primary); }
.quick-btn span { font-size: 13px; font-weight: 500; }

/* 响应式仪表盘 */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .stat-card { flex-direction: column; text-align: center; }
    .stat-icon { margin: 0 auto; }
}

/* ===== 图片上传组件 ===== */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.3s;
}
.image-upload-area:hover {
    border-color: var(--primary);
}
.image-upload-area img {
    border-radius: 4px;
}
.upload-placeholder {
    color: var(--text-muted);
    padding: 20px;
}
.upload-placeholder i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.detail-image-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}
.detail-image-item img {
    max-height: 120px;
    display: block;
}
.detail-image-item .btn-sm {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 10;
}

/* ===== 产品明细图网格 ===== */
.detail-image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}
.detail-image-cell {
    width: calc(50% - 8px);
    box-sizing: border-box;
}
.detail-image-cell img {
    width: 100%;
    display: block;
}

/* ===== 图片放大预览（Lightbox） ===== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.image-lightbox.active {
    display: flex;
}
.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.image-lightbox .lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000;
}
.image-lightbox .lightbox-close:hover {
    color: var(--accent);
}

/* 产品列表缩略图 */
.product-thumb {
    width: 80px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.product-thumb-placeholder {
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 20px;
}

/* ===== 错误提示模态框 ===== */
.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.error-modal.active {
    display: flex;
}
.error-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.error-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: #fef0f0;
    border-radius: 12px 12px 0 0;
}
.error-modal-header i {
    font-size: 24px;
    color: #d32f2f;
}
.error-modal-header h4 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #d32f2f;
}
.error-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.error-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}
.error-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}
.error-modal-body ul {
    margin: 0;
    padding-left: 20px;
}
.error-modal-body li {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}
.error-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    text-align: right;
}
.error-modal-footer .btn-primary {
    min-width: 100px;
}
