/* css/style.css */
:root {
  --primary: #d4a017;
  --primary-dark: #b8860b;
  --secondary: #1a1a2e;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --danger: #dc3545;
  --success: #28a745;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text-dark); background: #fff; line-height: 1.6; }

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

/* 头部 */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 12px 20px; flex-wrap: wrap; }
.logo-area { display: flex; align-items: center; }
.logo-link { display: flex; align-items: center; text-decoration: none; color: var(--secondary); }
.logo-icon { font-size: 28px; margin-right: 10px; color: var(--primary); }
.logo-title { font-size: 1.5rem; font-weight: 700; display: block; }
.logo-subtitle { font-size: 0.75rem; color: #888; display: block; }
.main-nav ul { display: flex; list-style: none; }
.main-nav ul li { margin: 0 12px; }
.main-nav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 500; padding: 5px 0; border-bottom: 2px solid transparent; transition: all 0.3s; }
.main-nav ul li a:hover, .main-nav ul li.active a { color: var(--primary); border-bottom-color: var(--primary); }
.header-actions { display: flex; gap: 10px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-large { padding: 14px 30px; font-size: 1.1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.mobile-menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--secondary); }
.header-qq-bar { background: #f1f1f1; padding: 5px 0; font-size: 0.9rem; text-align: center; }
.header-qq-bar .container { display: flex; align-items: center; justify-content: center; gap: 5px; }
.header-qq-bar a { color: var(--primary); text-decoration: none; font-weight: bold; }
.qq-tip { color: #888; font-size: 0.8rem; }

/* 移动端导航遮罩 */
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; }
.mobile-nav-overlay.active { display: block; }
.mobile-nav-content { background: #fff; width: 80%; max-width: 350px; height: 100%; padding: 20px; overflow-y: auto; }
.close-mobile-nav { background: none; border: none; font-size: 28px; cursor: pointer; float: right; }
.mobile-nav-content ul { list-style: none; margin-top: 50px; }
.mobile-nav-content ul li { margin: 20px 0; }
.mobile-nav-content ul li a { text-decoration: none; color: var(--text-dark); font-size: 1.2rem; }
.mobile-action-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }

/* 英雄区域 */
.hero-section { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%); color: #fff; padding: 80px 20px; text-align: center; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.1rem; color: #ccc; margin-bottom: 30px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* 特性 */
.features-section { padding: 60px 20px; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.feature-item { background: #fff; padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.feature-item i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.feature-item h3 { margin-bottom: 10px; }

/* 新闻预览 */
.news-preview-section { padding: 60px 20px; }
.news-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.news-card-img { height: 180px; background-size: cover; background-position: center; }
.news-card-body { padding: 20px; }
.news-card-body h3 a { text-decoration: none; color: var(--text-dark); }
.news-card-body h3 a:hover { color: var(--primary); }
.news-date { color: #999; font-size: 0.85rem; margin-top: 10px; }
.view-all-link { text-align: center; margin-top: 40px; }

/* 页面横幅 */
.page-banner { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%); color: #fff; padding: 50px 20px; text-align: center; }
.page-banner h1 { font-size: 2.2rem; }
.page-banner p { color: #ccc; margin-top: 10px; }

/* 关于我们 */
.about-content { padding: 60px 20px; }
.about-intro { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.about-intro h2 { margin-bottom: 20px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.about-card { background: var(--bg-light); padding: 30px; border-radius: 8px; text-align: center; }
.about-card i { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.about-card h3 { margin-bottom: 10px; }

/* 下载页面 */
.download-section { padding: 60px 20px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.download-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 30px; text-align: center; }
.download-icon { font-size: 48px; color: var(--primary); margin-bottom: 15px; }
.download-card h3 { margin-bottom: 10px; }
.download-card p { color: #777; margin-bottom: 20px; }
.download-note { text-align: center; margin-top: 40px; color: #888; }

/* 新闻列表 */
.news-list-section { padding: 60px 20px; }
.news-list-item { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.news-thumb { width: 150px; height: 100px; flex-shrink: 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.news-item-content h3 a { text-decoration: none; color: var(--text-dark); }
.news-item-content h3 a:hover { color: var(--primary); }
.news-excerpt { color: #666; margin-top: 8px; }
.pagination { text-align: center; margin-top: 30px; }
.pagination a { display: inline-block; padding: 8px 12px; margin: 0 3px; border: 1px solid #ddd; text-decoration: none; color: var(--text-dark); border-radius: 4px; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 文章详情 */
.article-content { padding: 60px 20px; max-width: 800px; margin: 0 auto; }
.article-meta { color: #888; margin: 10px 0 30px; }
.article-main-image { margin-bottom: 30px; }
.article-main-image img { width: 100%; border-radius: 8px; }
.article-body { line-height: 1.8; margin-bottom: 30px; }

/* 联系我们 */
.contact-section { padding: 60px 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info ul { list-style: none; margin-top: 20px; }
.contact-info ul li { margin-bottom: 15px; font-size: 1.05rem; }
.contact-info ul li i { width: 25px; color: var(--primary); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }

/* 底部 */
.site-footer { background: #1a1a2e; color: #fff; padding: 50px 20px 100px; margin-top: 60px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { margin-bottom: 15px; color: var(--primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #ccc; text-decoration: none; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col i { margin-right: 8px; color: var(--primary); }
.footer-company { margin-top: 20px; color: #888; font-size: 0.85rem; }

/* 手机固定按钮 */
.mobile-fixed-buttons { display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000; }
.btn-fixed { flex: 1; text-align: center; padding: 12px 0; color: #fff; text-decoration: none; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-fixed-open { background: var(--primary); }
.btn-fixed-admin { background: var(--secondary); }

/* 登录页面 */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%); }
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo i { font-size: 48px; color: var(--primary); }
.login-logo h2 { margin-top: 10px; }
.alert { padding: 10px 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }
.back-home { display: block; text-align: center; margin-top: 15px; color: #888; text-decoration: none; }

/* 后台管理 */
.admin-body { background: #f4f6f9; }
.admin-container { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: #1a1a2e; color: #fff; padding: 20px; flex-shrink: 0; }
.admin-sidebar h3 { margin-bottom: 30px; }
.admin-sidebar ul { list-style: none; }
.admin-sidebar ul li { margin-bottom: 10px; }
.admin-sidebar ul li a { color: #ccc; text-decoration: none; display: block; padding: 8px 10px; border-radius: 4px; }
.admin-sidebar ul li a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 30px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-section { background: #fff; border-radius: 8px; padding: 25px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-section h3 { margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; }
.admin-table th { background: #f8f9fa; }
.seo-group { border: 1px solid #eee; padding: 15px; margin-bottom: 20px; border-radius: 4px; }
.tool-buttons { display: flex; gap: 15px; }

/* 响应式 */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-fixed-buttons { display: flex; }
  .footer-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-thumb { width: 100%; height: auto; }
  .admin-container { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 10px; }
  .admin-sidebar ul { display: flex; flex-wrap: wrap; gap: 5px; }
  .admin-sidebar ul li { margin: 0; }
  .form-row { grid-template-columns: 1fr; }
}
/* ========== 新增或调整的样式 ========== */
.section-padding { padding: 60px 20px; }

/* 首页平台介绍 */
.platform-intro { background: #fff; }
.intro-content p { max-width: 800px; margin: 0 auto 30px; text-align: center; font-size: 1.1rem; }
.intro-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.intro-item { display: flex; align-items: center; gap: 8px; background: var(--bg-light); padding: 10px 20px; border-radius: 50px; }
.intro-item i { color: var(--primary); }

/* 开户流程 */
.account-flow { background: var(--bg-light); }
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.flow-step { text-align: center; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.step-number { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; margin: 0 auto 15px; }

/* 软件介绍 */
.software-intro { background: #fff; }
.software-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.software-card { background: var(--bg-light); padding: 30px; border-radius: 8px; text-align: center; }
.software-card i { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
.software-card h3 { margin-bottom: 10px; }
.software-card p { margin-bottom: 20px; }

/* FAQ 折叠 */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; text-align: left; font-size: 1.1rem; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); }
.faq-question i { transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 0 20px; color: #666; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 200px; }

/* 关于我们 监管信息 */
.regulatory-section { background: var(--bg-light); }
.regulatory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.regulatory-card { background: #fff; padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.regulatory-card i { font-size: 40px; color: var(--primary); margin-bottom: 15px; }

/* 发展历程时间线 */
.history-section { background: #fff; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-year { font-weight: bold; color: var(--primary); margin-bottom: 5px; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; }
.timeline-content { background: var(--bg-light); padding: 15px; border-radius: 8px; }

/* 软件对比表格 */
.comparison-section { background: var(--bg-light); }
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.comparison-table th, .comparison-table td { padding: 15px; text-align: center; border-bottom: 1px solid #e0e0e0; }
.comparison-table th { background: var(--secondary); color: #fff; }
.comparison-table tr:last-child td { border-bottom: none; }

/* 优缺点卡片 */
.pros-cons-section { background: #fff; }
.pros-cons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pros-card { background: var(--bg-light); padding: 30px; border-radius: 8px; }
.pros-card h3 { margin-bottom: 15px; color: var(--primary); }
.pros-card ul { list-style: none; margin-bottom: 20px; }
.pros-card ul li { padding: 5px 0; }
.pros-card h3 i { margin-right: 8px; }

/* 新闻摘要两行截断 */
.two-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .intro-grid { flex-direction: column; align-items: center; }
}
.article-body {
    line-height: 1.8;
    margin-bottom: 30px;
    word-wrap: break-word;      /* 允许长单词断行 */
    overflow-wrap: break-word;  /* 现代浏览器 */
    max-width: 100%;            /* 确保容器不溢出 */
}
.article-content {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;           /* 防止溢出 */
}
.article-body img {
    max-width: 100%;
    height: auto;
}
/* 新闻图片占位符（无图时显示统一图标） */
.news-card-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px; /* 与 .news-card-img 高度一致 */
    color: #bbb;
    font-size: 3rem;
}

.news-thumb-placeholder {
    width: 150px;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 2rem;
    flex-shrink: 0;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .news-thumb-placeholder {
        width: 100%;
        height: auto;
        padding: 20px 0;
    }
}