/* DNA300 基因检测站群 - 全局样式 V2.0 */

:root {
    --primary: #2563eb; --primary-dark: #1d4ed8; --primary-light: #3b82f6; --primary-bg: #eff6ff;
    --secondary: #10b981; --secondary-dark: #059669; --accent: #f59e0b; --danger: #ef4444;
    --text: #1f2937; --text-light: #6b7280; --text-muted: #9ca3af;
    --bg: #f9fafb; --bg-white: #ffffff; --bg-gray: #f3f4f6;
    --border: #e5e7eb; --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow: 0 4px 6px rgba(0,0,0,0.07); --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 4px; --radius: 8px; --radius-lg: 12px;
    --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px;
    --container-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg); padding-bottom: 60px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.material-icons { font-size: 20px; vertical-align: middle; line-height: 1; }

/* 工具类 */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-md); }
.desktop-only { display: none !important; }
.mobile-only { display: block !important; }
@media (min-width: 768px) { .desktop-only { display: flex !important; } .mobile-only { display: none !important; } }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: 10px 20px; font-size: 14px; font-weight: 500; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.2s; }
.btn .material-icons { font-size: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* 顶部导航 */
.header { background: var(--bg-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.header-logo a { display: flex; align-items: center; gap: var(--space-sm); color: var(--text); font-weight: 600; font-size: 16px; }
.header-logo .logo-icon { font-size: 28px; color: var(--primary); }
.header-nav { display: flex; gap: var(--space-xs); }
.header-nav .nav-item { display: flex; align-items: center; gap: 4px; padding: 8px 12px; color: var(--text); border-radius: var(--radius); font-size: 14px; }
.header-nav .nav-item:hover { background: var(--primary-bg); color: var(--primary); }
.header-nav .nav-item .material-icons { font-size: 18px; }
.header-phone a { display: flex; align-items: center; gap: var(--space-xs); padding: 8px 16px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 500; }
.header-phone a:hover { background: var(--primary-dark); color: #fff; }
.menu-toggle { background: none; border: none; padding: 8px; cursor: pointer; }
.menu-toggle .material-icons { font-size: 28px; color: var(--text); }

/* 移动端菜单 */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-white); z-index: 200; flex-direction: column; }
.mobile-menu.active { display: flex; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md); border-bottom: 1px solid var(--border); }
.mobile-menu-header button { background: none; border: none; padding: 8px; cursor: pointer; }
.mobile-menu-nav { flex: 1; padding: var(--space-md); overflow-y: auto; }
.mobile-menu-nav a { display: flex; align-items: center; gap: var(--space-sm); padding: 14px var(--space-md); color: var(--text); border-radius: var(--radius); margin-bottom: var(--space-xs); }
.mobile-menu-nav a:hover { background: var(--primary-bg); color: var(--primary); }
.mobile-menu-phone { padding: var(--space-md); border-top: 1px solid var(--border); }
.mobile-menu-phone a { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 14px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 500; }

/* 手机底部固定栏 */
.mobile-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--bg-white); box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 99; }
.mobile-bottom-bar .bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; color: var(--text-light); font-size: 11px; }
.mobile-bottom-bar .bar-item .material-icons { font-size: 22px; }
.mobile-bottom-bar .bar-item:hover { color: var(--primary); }
.mobile-bottom-bar .bar-item-primary { background: var(--primary); color: #fff; }
.mobile-bottom-bar .bar-item-primary:hover { color: #fff; background: var(--primary-dark); }

/* 侧边悬浮 */
.sidebar-float { position: fixed; right: 20px; bottom: 100px; display: flex; flex-direction: column; gap: var(--space-sm); z-index: 90; }
.sidebar-float .float-item { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text-light); transition: all 0.2s; }
.sidebar-float .float-item:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.sidebar-float .float-text { font-size: 10px; margin-top: 2px; }

/* 微信弹窗 */
.wechat-popup { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 300; align-items: center; justify-content: center; }
.wechat-popup.active { display: flex; }
.wechat-popup-content { background: var(--bg-white); border-radius: var(--radius-lg); width: 90%; max-width: 320px; }
.wechat-popup-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md); border-bottom: 1px solid var(--border); }
.wechat-popup-header h4 { display: flex; align-items: center; gap: var(--space-sm); font-size: 16px; }
.wechat-popup-header button { background: none; border: none; padding: 4px; cursor: pointer; }
.wechat-popup-body { padding: var(--space-lg); text-align: center; }
.wechat-popup-body img { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: var(--radius); }
.wechat-popup-body p { margin-top: var(--space-md); color: var(--text-light); }

/* 面包屑 */
.breadcrumb { background: var(--bg-white); padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-light); }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); font-size: 13px; color: var(--text-light); }
.breadcrumb a { display: flex; align-items: center; gap: 2px; color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { font-size: 16px; color: var(--text-muted); }
.breadcrumb .current { color: var(--text); }

/* 主内容区 */
.main-content { min-height: calc(100vh - 200px); }
.section { padding: var(--space-xl) 0; }
.section-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 20px; font-weight: 600; margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--primary); }
.section-title .material-icons { font-size: 24px; color: var(--primary); }
.card { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--space-lg); }

/* 产品卡片 */
.product-grid { display: grid; gap: var(--space-md); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .product-grid.cols-2, .product-grid.cols-3 { grid-template-columns: 1fr; } }
.product-card { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all 0.2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); border-radius: var(--radius); flex-shrink: 0; }
.product-icon .material-icons { font-size: 24px; color: var(--primary); }
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 15px; font-weight: 600; margin-bottom: var(--space-xs); }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-desc { font-size: 13px; color: var(--text-light); margin-bottom: var(--space-sm); }
.product-price .price-value { font-size: 18px; font-weight: 600; color: var(--danger); }
.product-price .price-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: var(--space-xs); }
.product-action { flex-shrink: 0; }

/* 机构卡片 */
.org-grid { display: grid; gap: var(--space-md); }
.org-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.org-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .org-grid.cols-2, .org-grid.cols-3 { grid-template-columns: 1fr; } }
.org-list { display: flex; flex-direction: column; gap: var(--space-md); }
.org-card { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.org-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--secondary); border-radius: 50%; flex-shrink: 0; }
.org-icon .material-icons { font-size: 24px; color: #fff; }
.org-info { flex: 1; min-width: 0; }
.org-name { font-size: 15px; font-weight: 600; margin-bottom: var(--space-xs); }
.org-name a { color: var(--text); }
.org-name a:hover { color: var(--primary); }
.org-type { margin-bottom: var(--space-sm); }
.tag { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: var(--radius-sm); }
.tag-qinzi { background: #fef3c7; color: #92400e; }
.tag-jiyin { background: #dbeafe; color: #1e40af; }
.tag-wanhe { background: #d1fae5; color: #065f46; }
.org-address, .org-phone { display: flex; align-items: center; gap: var(--space-xs); font-size: 13px; color: var(--text-light); margin-top: var(--space-xs); }
.org-address .material-icons, .org-phone .material-icons { font-size: 16px; }
.org-action { display: flex; flex-direction: column; gap: var(--space-xs); flex-shrink: 0; }

/* 联系信息框 */
.contact-box { background: var(--bg-white); border-radius: var(--radius); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.contact-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 18px; font-weight: 600; margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--primary); }
.contact-title .material-icons { color: var(--primary); }
.contact-items { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-item { display: flex; gap: var(--space-md); }
.contact-item .item-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); border-radius: var(--radius); flex-shrink: 0; }
.contact-item .item-icon .material-icons { color: var(--primary); }
.contact-item .item-content { flex: 1; }
.contact-item .item-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contact-item .item-value { font-size: 14px; color: var(--text); }
.contact-item .item-value a { color: var(--primary); font-weight: 500; }
.contact-item .service-area { font-size: 13px; line-height: 1.8; }
.contact-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.contact-actions .btn { flex: 1; }

/* 价格表 */
.price-table-wrapper { background: var(--bg-white); border-radius: var(--radius); padding: var(--space-lg); box-shadow: var(--shadow-sm); overflow-x: auto; }
.price-table-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 18px; margin-bottom: var(--space-lg); }
.price-table-title .material-icons { color: var(--primary); }
.price-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.price-table th, .price-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--bg-gray); font-weight: 600; font-size: 13px; color: var(--text-light); }
.price-table .product-name { display: flex; align-items: center; gap: var(--space-sm); }
.price-table .product-name .material-icons { color: var(--primary); }
.price-table .price { font-weight: 600; color: var(--danger); }
.price-table .original-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: var(--space-xs); }
.price-table .price-consult { color: var(--primary); }
.price-notice { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-md); padding: var(--space-md); background: var(--bg-gray); border-radius: var(--radius); font-size: 13px; color: var(--text-light); }
.price-notice .material-icons { font-size: 18px; color: var(--accent); flex-shrink: 0; }

/* 文章卡片 */
.article-list { display: flex; flex-direction: column; gap: var(--space-md); }
.article-card { display: flex; gap: var(--space-md); padding: var(--space-md); background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-thumb { width: 120px; height: 80px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { flex: 1; min-width: 0; }
.article-title { font-size: 15px; font-weight: 600; margin-bottom: var(--space-xs); }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--primary); }
.article-desc { font-size: 13px; color: var(--text-light); margin-bottom: var(--space-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: var(--space-md); font-size: 12px; color: var(--text-muted); }
.article-meta .meta-item { display: flex; align-items: center; gap: 2px; }
.article-meta .material-icons { font-size: 14px; }

/* 底部 */
.footer { background: #1f2937; color: #9ca3af; padding: var(--space-xl) 0; margin-top: var(--space-xl); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); padding-bottom: var(--space-xl); border-bottom: 1px solid #374151; }
@media (max-width: 768px) { .footer-links { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } }
.footer-section h4 { display: flex; align-items: center; gap: var(--space-sm); color: #fff; font-size: 15px; margin-bottom: var(--space-md); }
.footer-section h4 .material-icons { font-size: 18px; }
.footer-section .link-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.footer-section .link-list a { color: #9ca3af; font-size: 13px; }
.footer-section .link-list a:hover { color: #fff; }
.footer-section .contact-info p { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; margin-bottom: var(--space-sm); }
.footer-section .contact-info .material-icons { font-size: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-lg); font-size: 13px; }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-md); } }
.footer-brand { display: flex; align-items: center; gap: var(--space-sm); color: #d1d5db; }
.footer-brand .material-icons { color: var(--secondary); }

/* Banner */
.hero-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: var(--space-xl) 0; }
.hero-banner .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.hero-content h1 { font-size: 28px; margin-bottom: var(--space-md); }
.hero-content p { font-size: 16px; opacity: 0.9; margin-bottom: var(--space-lg); }
.hero-actions { display: flex; gap: var(--space-md); }
.hero-actions .btn { padding: 12px 24px; }
@media (max-width: 768px) { .hero-banner .container { flex-direction: column; text-align: center; } .hero-content h1 { font-size: 22px; } .hero-actions { justify-content: center; } }

/* 空状态 */
.empty-tip { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-xl); color: var(--text-muted); }
.empty-tip .material-icons { font-size: 48px; margin-bottom: var(--space-md); }

/* 页面头部 */
.page-header { background: var(--bg-white); padding: var(--space-lg) 0; border-bottom: 1px solid var(--border); margin-bottom: var(--space-lg); }
.page-header h1 { font-size: 24px; margin-bottom: var(--space-xs); }
.page-header .subtitle { color: var(--text-light); }

/* 两栏布局 */
.layout-two-col { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-xl); }
@media (max-width: 992px) { .layout-two-col { grid-template-columns: 1fr; } }
.main-col { min-width: 0; }
.sidebar-col { display: flex; flex-direction: column; gap: var(--space-lg); }
@media (max-width: 992px) { .sidebar-col { order: -1; } }

/* 侧边栏模块 */
.sidebar-box { background: var(--bg-white); border-radius: var(--radius); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.sidebar-title { display: flex; align-items: center; gap: var(--space-sm); font-size: 16px; font-weight: 600; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border); }
.sidebar-title .material-icons { color: var(--primary); }

/* 修复：桌面端隐藏移动端菜单 */
@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
    .menu-toggle { display: none !important; }
}

/* Skip Link - 无障碍导航（默认隐藏） */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}
