/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { font-size: 28px; }
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-menu a {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.search-box {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 4px;
}
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 6px 14px;
    width: 200px;
    font-size: 14px;
}
.search-box input::placeholder { color: rgba(255,255,255,0.6); }
.search-box button {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    cursor: pointer;
    color: #1a73e8;
    font-weight: 600;
    font-size: 14px;
}

/* Hero横幅 */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #1565c0 50%, #0d47a1 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}
.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 32px; font-weight: 700; }
.hero-stat-label { font-size: 14px; opacity: 0.8; }

/* 分类快捷入口 */
.section { padding: 40px 0; }
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #1a73e8;
    border-radius: 2px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,115,232,0.15);
}
.category-icon { font-size: 40px; margin-bottom: 12px; }
.category-name { font-size: 15px; font-weight: 600; color: #333; }
.category-count { font-size: 12px; color: #999; margin-top: 4px; }

/* 软件列表 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.software-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.software-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.software-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.software-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.software-info { flex: 1; min-width: 0; }
.software-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.software-version {
    font-size: 12px;
    color: #1a73e8;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.software-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.software-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.software-meta span { display: flex; align-items: center; gap: 4px; }
.download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #1a73e8, #1565c0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.download-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: scale(1.02);
}
.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pagination a:hover { background: #1a73e8; color: #fff; }
.pagination .current { background: #1a73e8; color: #fff; }

/* 详情页 */
.detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-top: 30px;
}
.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}
.detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    flex-shrink: 0;
}
.detail-info h1 { font-size: 28px; margin-bottom: 10px; }
.detail-info .version-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}
.detail-info .desc { color: #666; font-size: 15px; line-height: 1.7; }
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.detail-meta-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}
.detail-meta-item .label { font-size: 13px; color: #999; margin-bottom: 6px; }
.detail-meta-item .value { font-size: 18px; font-weight: 600; color: #333; }
.detail-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid #1a73e8;
}
.detail-content { color: #555; line-height: 1.8; font-size: 15px; }
.detail-download-btn {
    display: inline-block;
    padding: 14px 50px;
    background: linear-gradient(135deg, #1a73e8, #1565c0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}
.detail-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26,115,232,0.3);
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: #999;
}
.breadcrumb a { color: #1a73e8; }
.breadcrumb span { margin: 0 8px; }

/* 底部 */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* 后台样式 */
.admin-body { background: #f0f2f5; }
.admin-header {
    background: #001529;
    color: #fff;
    padding: 0 30px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header .logo { font-size: 18px; }
.admin-header .user-info { font-size: 14px; }
.admin-header .user-info a { color: #fff; margin-left: 20px; }
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.admin-sidebar {
    width: 220px;
    background: #001529;
    padding-top: 20px;
}
.admin-sidebar a {
    display: block;
    padding: 14px 30px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #1890ff;
    color: #fff;
}
.admin-content {
    flex: 1;
    padding: 24px;
}
.admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-card h2 { font-size: 18px; margin-bottom: 20px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.stat-card .label { font-size: 14px; color: #999; margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; color: #1890ff; }
.stat-card.green .value { color: #52c41a; }
.stat-card.orange .value { color: #fa8c16; }
.stat-card.purple .value { color: #722ed1; }

/* 表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.admin-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}
.admin-table tr:hover { background: #f5f7fa; }
.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 6px;
}
.btn-primary { background: #1890ff; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-default { background: #f0f0f0; color: #333; }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.alert-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .search-box input { width: 120px; }
    .hero h1 { font-size: 24px; }
    .hero-stats { gap: 30px; }
    .hero-stat-num { font-size: 24px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .software-grid { grid-template-columns: 1fr; }
    .detail-meta-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { width: 60px; }
    .admin-sidebar a { padding: 14px; text-align: center; font-size: 0; }
    .admin-sidebar a::first-letter { font-size: 16px; }
}

/* ========== V2 新增样式 ========== */

/* 公告条 */
.announcement-bar {
    background: linear-gradient(90deg, #1a73e8, #1565c0);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    overflow: hidden;
}
.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.announcement-bar .label {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}
.announcement-bar .content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.announcement-bar.warning { background: linear-gradient(90deg, #fa8c16, #d46b08); }
.announcement-bar.success { background: linear-gradient(90deg, #52c41a, #389e0d); }

/* 热门搜索 */
.hot-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
}
.hot-search .label { color: #999; flex-shrink: 0; }
.hot-search .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-search .tag {
    background: #f0f5ff;
    color: #1a73e8;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.hot-search .tag:hover { background: #1a73e8; color: #fff; }

/* 筛选排序栏 */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.filter-bar .sort-options { display: flex; gap: 8px; }
.filter-bar .sort-btn {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}
.filter-bar .sort-btn.active, .filter-bar .sort-btn:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

/* NEW标签 */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4f, #cf1322);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 截图轮播 */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.screenshot-item {
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: transform 0.2s;
}
.screenshot-item:hover { transform: scale(1.05); }

/* 信息块 */
.info-block {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.info-block h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-block ul { padding-left: 20px; color: #555; font-size: 14px; line-height: 2; }
.info-block p { color: #555; font-size: 14px; line-height: 1.8; }

/* 安装步骤 */
.install-steps { counter-reset: step; }
.install-steps .step {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.install-steps .step-num {
    width: 28px;
    height: 28px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.install-steps .step-content { flex: 1; font-size: 14px; color: #555; line-height: 1.7; }

/* 评分 */
.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}
.rating-stars { color: #faad14; font-size: 18px; letter-spacing: 2px; }
.rating-score { font-size: 20px; font-weight: 700; color: #fa8c16; }
.rating-count { font-size: 13px; color: #999; }

/* 留言区 */
.comment-section { margin-top: 30px; }
.comment-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-list .comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.comment-list .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.comment-list .comment-user { font-weight: 600; color: #333; }
.comment-list .comment-time { font-size: 12px; color: #999; }
.comment-list .comment-content { color: #555; font-size: 14px; line-height: 1.7; }

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.friend-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: all 0.2s;
}
.friend-link-item:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* 暗色模式切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    border: none;
}
.theme-toggle:hover { transform: scale(1.1); }

/* 收藏按钮 */
.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}
.fav-btn:hover { border-color: #faad14; color: #faad14; }
.fav-btn.active { background: #fffbe6; border-color: #faad14; color: #faad14; }

/* 下载提示页 */
.download-tip {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.download-tip h2 { text-align: center; margin-bottom: 20px; }
.download-tip .tip-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.download-tip .tip-icon { font-size: 20px; flex-shrink: 0; }
.download-tip .tip-text { flex: 1; font-size: 14px; color: #555; line-height: 1.7; }
.download-tip .download-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.download-tip .dl-link-btn {
    display: block;
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s;
}
.download-tip .dl-link-btn.primary { background: linear-gradient(135deg, #1a73e8, #1565c0); }
.download-tip .dl-link-btn.backup { background: linear-gradient(135deg, #52c41a, #389e0d); }
.download-tip .dl-link-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* 暗色模式 */
body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}
body.dark .header { background: linear-gradient(135deg, #0d1b2a, #1b263b); }
body.dark .hero { background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77); }
body.dark .software-card, body.dark .admin-card, body.dark .detail-container,
body.dark .category-card, body.dark .filter-bar, body.dark .info-block,
body.dark .comment-form, body.dark .stat-card {
    background: #16213e;
    color: #e0e0e0;
}
body.dark .software-name, body.dark h1, body.dark h2, body.dark h3, body.dark h4 { color: #fff; }
body.dark .software-desc, body.dark .detail-content, body.dark .comment-content { color: #b0b0b0; }
body.dark .software-meta, body.dark .breadcrumb, body.dark .rating-count { color: #888; }
body.dark .admin-table th { background: #0f3460; color: #fff; }
body.dark .admin-table td { border-bottom-color: #1a1a3e; color: #ccc; }
body.dark .admin-table tr:hover { background: #1a1a3e; }
body.dark .form-group input, body.dark .form-group select, body.dark .form-group textarea,
body.dark .comment-form input, body.dark .comment-form textarea {
    background: #0f3460;
    border-color: #1a1a3e;
    color: #fff;
}
body.dark .footer { background: #0d1b2a; }
body.dark .announcement-bar { background: linear-gradient(90deg, #0f3460, #16213e); }
body.dark .login-box { background: #16213e; }
body.dark .login-box h2 { color: #fff; }
body.dark .admin-header { background: #0d1b2a; }
body.dark .admin-sidebar { background: #0d1b2a; }
body.dark .admin-sidebar a:hover, body.dark .admin-sidebar a.active { background: #1a73e8; }
body.dark .btn-default { background: #0f3460; color: #ccc; }
body.dark .pagination a, body.dark .pagination span { background: #16213e; color: #ccc; }
body.dark .hot-search .tag { background: #0f3460; color: #4da3ff; }
body.dark .fav-btn { background: #16213e; border-color: #2a2a4a; color: #ccc; }
body.dark .download-tip { background: #16213e; }
body.dark .download-tip .tip-item { border-bottom-color: #2a2a4a; }
body.dark .comment-list .comment-item { border-bottom-color: #2a2a4a; }
body.dark .comment-user { color: #fff; }

/* 访问统计图表 */
.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 20px 0;
}
.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.chart-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #1a73e8, #1565c0);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}
.chart-bar-label { font-size: 12px; color: #999; }
.chart-bar-value { font-size: 13px; font-weight: 600; color: #333; }

body.dark .chart-container { background: #16213e; }
body.dark .chart-bar-value { color: #fff; }

/* ========== 公告优化 + 在线客服 V3 ========== */

/* 公告条优化 */
.announcement-bar {
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.announcement-bar .label {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.announcement-bar.info { background: #e3f2fd; color: #1565c0; }
.announcement-bar.info .label { background: #1976d2; color: #fff; }
.announcement-bar.warning { background: #fff3e0; color: #e65100; }
.announcement-bar.warning .label { background: #f57c00; color: #fff; }
.announcement-bar.success { background: #e8f5e9; color: #2e7d32; }
.announcement-bar.success .label { background: #43a047; color: #fff; }
.announcement-bar .content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.announcement-bar .announcement-close {
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    font-size: 16px;
    transition: opacity 0.2s;
}
.announcement-bar .announcement-close:hover { opacity: 1; }

/* 公告轮播 */
.announcement-slider {
    flex: 1;
    overflow: hidden;
    height: 20px;
    position: relative;
}
.announcement-slide {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧悬浮在线客服 */
.floating-service {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: stretch;
}
.floating-service-toggle {
    width: 40px;
    background: linear-gradient(180deg, #ff8c00, #ff6600);
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: center;
    padding: 16px 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.floating-service-toggle:hover {
    background: linear-gradient(180deg, #ff9933, #ff7733);
    width: 44px;
}
.floating-service-toggle .service-icon {
    writing-mode: horizontal-tb;
    font-size: 18px;
    margin-bottom: 4px;
}
.floating-service-panel {
    width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.12);
    transition: width 0.3s ease;
}
.floating-service.open .floating-service-panel {
    width: 200px;
}
.floating-service-panel-inner {
    width: 200px;
    padding: 20px 16px;
}
.service-item {
    text-align: center;
    margin-bottom: 18px;
}
.service-item:last-child { margin-bottom: 0; }
.service-item .service-icon-big {
    font-size: 32px;
    margin-bottom: 8px;
}
.service-item .service-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.service-item .service-value {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.service-item .service-value a {
    color: #1976d2;
    text-decoration: none;
}
.service-qrcode {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 8px;
}
.service-divider {
    height: 1px;
    background: #eee;
    margin: 14px 0;
}

/* 暗色模式适配 */
body.dark .floating-service-panel { background: #16213e; }
body.dark .service-item .service-title { color: #fff; }
body.dark .service-item .service-value { color: #aaa; }
body.dark .service-qrcode { background: #1a2a4a; border-color: #2a3a5a; color: #888; }
body.dark .service-divider { background: #2a3a5a; }

/* 响应式 */
@media (max-width: 768px) {
    .floating-service-toggle {
        width: 32px;
        font-size: 13px;
        padding: 12px 6px;
    }
    .floating-service.open .floating-service-panel { width: 160px; }
    .floating-service-panel-inner { width: 160px; padding: 14px 10px; }
    .service-qrcode { width: 100px; height: 100px; }
}


/* ========== 企业官网风格 V3 ========== */

/* 企业Hero区域 */
.enterprise-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d47a1 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.enterprise-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,115,232,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.enterprise-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13,71,161,0.4) 0%, transparent 70%);
    border-radius: 50%;
}
.enterprise-hero .container { position: relative; z-index: 1; }
.enterprise-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}
.enterprise-hero h1 span {
    background: linear-gradient(90deg, #4fc3f7, #29b6f6, #03a9f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.enterprise-hero .subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}
.enterprise-hero .hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}
.enterprise-hero .hero-btn {
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.enterprise-hero .hero-btn.primary {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(33,150,243,0.4);
}
.enterprise-hero .hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(33,150,243,0.5);
}
.enterprise-hero .hero-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.enterprise-hero .hero-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* 大数据展示 */
.big-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.big-stat-item {
    text-align: left;
    padding: 20px 0;
    border-left: 3px solid rgba(79,195,247,0.5);
    padding-left: 20px;
}
.big-stat-num {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(90deg, #4fc3f7, #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.big-stat-num small { font-size: 20px; }
.big-stat-label {
    font-size: 15px;
    opacity: 0.75;
}

/* 企业介绍区域 */
.enterprise-section {
    padding: 80px 0;
}
.enterprise-section.alt { background: #f8fafc; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header .tag {
    display: inline-block;
    padding: 6px 20px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 功能特点卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(26,115,232,0.15);
    border-color: #bbdefb;
}
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 场景案例 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.case-image {
    height: 180px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #fff;
}
.case-content { padding: 24px; }
.case-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.case-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}
.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
}

/* 合作伙伴 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.partner-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}
.partner-item:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    box-shadow: 0 4px 16px rgba(26,115,232,0.1);
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #0a1628, #1a3a5c);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}
.cta-section .cta-btn {
    display: inline-block;
    padding: 14px 48px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.cta-section .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(33,150,243,0.4);
}

/* 暗色模式适配 */
body.dark .enterprise-section.alt { background: #0f172a; }
body.dark .section-header h2 { color: #fff; }
body.dark .section-header p { color: #aaa; }
body.dark .feature-card, body.dark .case-card, body.dark .partner-item {
    background: #16213e;
    border-color: #2a2a4a;
}
body.dark .feature-card h3, body.dark .case-content h3 { color: #fff; }
body.dark .feature-card p, body.dark .case-content p { color: #aaa; }
body.dark .partner-item { color: #ccc; }
body.dark .partner-item:hover { color: #4fc3f7; border-color: #4fc3f7; }

/* 响应式 */
@media (max-width: 768px) {
    .enterprise-hero h1 { font-size: 32px; }
    .enterprise-hero .subtitle { font-size: 15px; }
    .big-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .big-stat-num { font-size: 32px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .section-header h2 { font-size: 26px; }
    .enterprise-hero .hero-btns { flex-direction: column; }
}


