/* ==========================================================================
   项目：东莞POS办理中心 - 终极全能样式表 (2026 旗舰版)
   功能：集成毛玻璃、全对齐页脚、手机菜单可见、详情页专业排版、动效库
   ========================================================================== */

/* --- 1. 核心变量 (全站色彩管理) --- */
:root {
    --primary: #065f46;        /* 商务墨绿 */
    --primary-light: #ecf3f1;
    --accent: #ea580c;         /* 暖橙 */
    --accent-glow: rgba(234, 88, 12, 0.15);
    --bg-dark: #0f172a;        /* 导航及页脚背景 */
    --bg-light: #f8fafc;       /* 全局背景 */
    --text-main: #1e293b;      /* 主标题色 */
    --text-light: #64748b;     /* 辅助文字色 */
    --white: #ffffff;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

/* --- 2. 基础复位 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif; 
    background: var(--bg-light); 
    color: var(--text-main); 
    line-height: 1.8; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* --- 3. 顶部导航 (PC & 手机端全可见、严格一行) --- */
header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; height: 72px; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { 
    font-size: 1.6rem; font-weight: 900; color: var(--accent); 
    letter-spacing: -1px; white-space: nowrap; flex-shrink: 0; 
}
.nav-links { display: flex; align-items: center; gap: 35px; white-space: nowrap; }
.nav-links a { 
    font-weight: 700; color: #f1f5f9; font-size: 1rem; 
    position: relative; padding: 6px 0; 
}
.nav-links a::after {
    content: ""; position: absolute; width: 0; height: 3px; bottom: -4px; left: 50%;
    background: var(--accent); transition: 0.4s ease; transform: translateX(-50%);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

/* --- 4. 首屏 Hero 区域 --- */
.hero { position: relative; height: 480px; background: var(--bg-dark); color: white; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg1, .hero-bg2 { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero-bg1 { background-image: url('tupian/1.jpg'); }
.hero-bg2 { background-image: url('tupian/2.jpg'); animation: bgFadeEffect 12s infinite; }
@keyframes bgFadeEffect { 0%, 100% { opacity: 0; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 900; z-index: 10; padding: 0 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.cta-btn { 
    font-size: 1.8rem; font-weight: 800; background: var(--accent); color: white;
    padding: 14px 45px; border-radius: 50px; display: inline-block; 
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4); animation: pulseBtn 2s infinite;
}
@keyframes pulseBtn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* --- 5. 搜索模块 --- */
.search-wrapper { max-width: 800px; margin: -40px auto 40px; position: relative; z-index: 20; padding: 0 20px; }
.search-input { width: 100%; padding: 18px 60px; border: none; border-radius: 50px; font-size: 1.1rem; background: var(--white); box-shadow: 0 15px 35px rgba(0,0,0,0.1); outline: none; }
.search-icon { position: absolute; left: 45px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.hidden { display: none !important; }

/* --- 6. 办理流程图 --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.process-item { text-align: center; }
.step-num { 
    width: 75px; height: 75px; background: white; border: 3px solid var(--accent); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 15px; font-size: 1.6rem; color: var(--accent); font-weight: bold;
    box-shadow: var(--shadow-soft); transition: 0.4s;
}
.process-item:hover .step-num { background: var(--accent); color: white; transform: rotate(10deg) translateY(-8px); }

/* --- 7. 核心优势模块 --- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1400px; margin: 80px auto; padding: 0 40px; }
.f-card { background: white; padding: 45px 30px; border-radius: 20px; box-shadow: var(--shadow-soft); text-align: center; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); transition: 0.4s; }
.f-card:hover { transform: translateY(-10px); clip-path: none; box-shadow: var(--shadow-heavy); }
.f-card i { font-size: 3rem; color: var(--accent); margin-bottom: 20px; display: block; }

/* --- 8. 资讯列表样式 (首页 & 列表页通用) --- */
.articles-box, .article-list { max-width: 1100px; margin: 0 auto 100px; padding: 0 20px; }
.a-item { 
    background: var(--white); padding: 30px; border-radius: 18px; margin-bottom: 25px; 
    display: flex; align-items: center; gap: 25px; position: relative; 
    box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.02);
}
/* 左侧数字序号块 */
.a-item::before { 
    content: attr(data-num); flex-shrink: 0; width: 60px; height: 60px; 
    background: var(--primary-light); color: var(--primary); border-radius: 12px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900; transition: 0.4s;
}
.a-item:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-heavy); }
.a-item:hover::before { background: var(--accent); color: white; transform: rotate(-5deg); }
.a-item h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; }

/* --- 9. 文章详情页样式 (新整合) --- */
.article-container { 
    max-width: 1400px; margin: 30px auto 80px; 
    display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 0 20px; 
}
.article-main { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-heavy); }
.entry-header h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; line-height: 1.4; font-weight: 800; }
.entry-meta { font-size: 13px; color: var(--text-light); margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.entry-content h2 { font-size: 1.6rem; color: var(--primary); margin: 40px 0 20px; border-left: 5px solid var(--accent); padding-left: 15px; background: #f8fafc; padding-top: 10px; padding-bottom: 10px; }
.entry-content p { font-size: 1.1rem; margin-bottom: 25px; text-indent: 2em; color: #334155; }
.entry-content b { color: var(--accent); font-weight: 800; }
.anchor-link { color: var(--primary); text-decoration: underline; font-weight: bold; }
.data-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; }
.data-table th { background: var(--primary); color: white; padding: 15px; border: 1px solid #eee; }
.data-table td { padding: 15px; border: 1px solid #eee; text-align: center; }
.data-table tr:nth-child(even) { background: #f9fafb; }
.highlight-box { background: #fff7ed; border: 1px dashed var(--accent); padding: 25px; border-radius: 12px; margin: 30px 0; }

/* 侧边栏对齐 */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-module { background: var(--white); padding: 25px; border-radius: 18px; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); }
.side-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 12px; line-height: 1; }
.hot-list li { list-style: none; padding: 12px 0; border-bottom: 1px dashed #edf2f7; font-size: 14px; transition: 0.3s; }
.hot-list li:hover { padding-left: 8px; color: var(--accent); }

/* --- 10. 底部区域 (精准五列对齐) --- */
footer { background: var(--bg-dark); color: #94a3b8; padding: 80px 20px 120px; border-top: 5px solid var(--accent); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.city-links { display: flex; flex-wrap: wrap; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; }
.city-links a { 
    width: 20%; /* PC端精准5列 */
    font-size: 0.9rem; color: #cbd5e1; padding: 8px 5px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.city-links a:hover { color: var(--accent); padding-left: 5px; }
.beian { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 0.9rem; }

/* --- 11. 浮窗 & 移动组件 --- */
.side-float { position: fixed; right: 25px; top: 50%; transform: translateY(-50%); z-index: 1001; }
.float-btn { width: 65px; height: 65px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); margin-bottom: 15px; cursor: pointer; }
.float-btn img { width: 50px; height: 50px; border-radius: 50%; }
.left-service { position: fixed; left: 25px; bottom: 150px; width: 60px; height: 60px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; z-index: 1001; animation: wave 6s infinite; }
@keyframes wave { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 75px; background: white; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); z-index: 1002; align-items: center; justify-content: space-around; }

/* 二维码遮罩 */
#qr-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; }
#qr-mask img { width: 320px; border: 5px solid white; border-radius: 10px; }

/* --- 12. 响应式适配逻辑 --- */
@media (max-width: 1024px) {
    .city-links a { width: 25%; } /* 平板4列 */
}

@media (max-width: 768px) {
    /* 核心修复：导航栏缩放保持一行 */
    .nav-container { padding: 0 10px; height: 60px; }
    .logo { font-size: 1.1rem; } 
    .nav-links { gap: 12px; } 
    .nav-links a { font-size: 0.85rem; padding: 4px 0; }
    
    /* 布局降级 */
    .hero { height: 380px; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .features { grid-template-columns: 1fr; }
    .f-card { clip-path: none; padding: 40px 25px; }
    
    /* 详情页降级 */
    .article-container { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .article-main { padding: 25px; }
    .entry-header h1 { font-size: 1.6rem; }
    
    /* 列表项手机端微调 */
    .a-item { padding: 20px; gap: 15px; }
    .a-item::before { width: 45px; height: 45px; font-size: 1.2rem; }
    
    .city-links a { width: 33.33%; text-align: center; } 
    .side-float, .left-service { display: none; }
    .mobile-bar { display: flex; }
}

@media (max-width: 480px) {
    .logo { font-size: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .city-links a { width: 50%; } /* 小屏2列 */
    .hero h1 { font-size: 1.8rem; }
}

  /* 文章详情页加固布局 */
        .article-container { 
            max-width: 1200px; margin: 30px auto 80px; 
            display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 0 20px; 
        }
        .article-main { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
        
        /* 正文排版 */
        .entry-header h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; line-height: 1.4; font-weight: 800; }
        .entry-meta { font-size: 13px; color: var(--text-light); margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
        .entry-content h2 { font-size: 1.6rem; color: var(--primary); margin: 40px 0 20px; border-left: 5px solid var(--accent); padding-left: 15px; background: #f8fafc; padding-top: 10px; padding-bottom: 10px; }
        .entry-content p { font-size: 1.1rem; margin-bottom: 25px; text-indent: 2em; color: #334155; }
        .entry-content b { color: var(--accent); font-weight: 800; }
        
        /* 侧边栏对齐加固 */
        .sidebar { display: flex; flex-direction: column; gap: 24px; }
        .side-module { background: var(--white); padding: 25px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); }
        .side-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 12px; }
        .hot-list li { padding: 12px 0; border-bottom: 1px dashed #edf2f7; font-size: 14px; transition: 0.3s; list-style: none; }
        .hot-list li:hover { padding-left: 8px; color: var(--accent); }

        @media (max-width: 992px) {
            .article-container { grid-template-columns: 1fr; }
            .sidebar { display: none; }
            .entry-header h1 { font-size: 1.6rem; }
}