/* ========================================
   麦克林品牌设计 - 主样式表
   仿 hzvis.com 风格，深色高端设计公司风格
   ======================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── 通用容器 ── */
.section { padding: 80px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2rem; font-weight: 300; letter-spacing: 2px; color: #111; }
.section-subtitle { font-size: 0.95rem; color: #999; margin-top: 10px; letter-spacing: 1px; }
.section-more { text-align: center; margin-top: 40px; }

/* ── 按钮 ── */
.btn { display: inline-block; padding: 12px 36px; font-size: 0.9rem; letter-spacing: 2px; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-outline { border: 1px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-more { font-size: 0.85rem; color: #666; letter-spacing: 3px; border-bottom: 1px solid #ccc; padding: 8px 20px; }
.btn-more:hover { color: #111; border-color: #111; }
.btn-more span { margin-left: 4px; }

/* ===== 顶部导航 ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}
.header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; height: 70px;
}
.logo img { height: 36px; }
.logo-text { font-size: 1.1rem; color: #fff; font-weight: 500; letter-spacing: 3px; }

.main-nav { margin-left: auto; margin-right: 40px; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
    color: #ccc; font-size: 0.85rem; letter-spacing: 2px;
    transition: color 0.3s; padding: 4px 0;
}
.main-nav a:hover { color: #fff; }

.header-phone { color: #ccc; font-size: 0.8rem; letter-spacing: 1px; white-space: nowrap; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -1;
}
.hero-inner { max-width: 780px; padding: 0 40px; }
.hero-title { font-size: 3.2rem; font-weight: 300; letter-spacing: 6px; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; color: #aaa; letter-spacing: 4px; margin-bottom: 30px; }
.hero-desc { font-size: 0.95rem; color: #888; line-height: 1.8; max-width: 640px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== 案例展示 ===== */
.cases-section { background: #fafafa; }

.case-tabs {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.tab-btn {
    padding: 8px 22px; font-size: 0.8rem; letter-spacing: 1px;
    background: none; border: 1px solid #ddd; color: #666; cursor: pointer; transition: all 0.3s;
}
.tab-btn:hover, .tab-btn.active { background: #111; color: #fff; border-color: #111; }

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.case-card {
    display: block; background: #fff; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.case-card-img { overflow: hidden; aspect-ratio: 4/3; background: #e5e5e5; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-info { padding: 18px 16px; }
.case-card-client { font-size: 0.75rem; color: #999; letter-spacing: 1px; }
.case-card-title { font-size: 0.95rem; color: #222; margin-top: 6px; font-weight: 500; }
.case-card-desc { font-size: 0.78rem; color: #aaa; margin-top: 8px; line-height: 1.5; }

/* ===== 观点资讯（三栏） ===== */
.news-section { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.news-col-title {
    font-size: 0.9rem; font-weight: 500; color: #111; padding-bottom: 15px;
    border-bottom: 2px solid #111; margin-bottom: 20px; letter-spacing: 2px;
}
.news-list li { padding: 10px 0; border-bottom: 1px dotted #e5e5e5; }
.news-list a { font-size: 0.85rem; color: #555; transition: color 0.3s; }
.news-list a:hover { color: #111; }

/* ===== 服务入口 ===== */
.services-section { background: #fafafa; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    display: block; padding: 40px 30px; background: #fff; text-align: center;
    transition: all 0.3s; border: 1px solid transparent;
}
.service-card:hover { border-color: #111; transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.service-card h3 { font-size: 1rem; color: #111; font-weight: 500; letter-spacing: 2px; }
.service-card p { font-size: 0.8rem; color: #999; margin-top: 10px; }

/* ===== 页脚 ===== */
.site-footer { background: #111; color: #888; padding: 60px 0 30px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 30px; margin-bottom: 16px; }
.footer-name { font-size: 1rem; color: #ccc; letter-spacing: 2px; margin-bottom: 12px; }
.footer-addr, .footer-tel, .footer-qq { font-size: 0.8rem; line-height: 1.8; }
.footer-col h4 { font-size: 0.8rem; color: #ccc; margin-bottom: 14px; letter-spacing: 2px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.78rem; color: #777; transition: color 0.3s; }
.footer-col ul a:hover { color: #fff; }
.footer-qrcode img { border: 1px solid #333; }
.footer-qrcode p { font-size: 0.75rem; margin-top: 8px; text-align: center; }

.footer-links { border-top: 1px solid #222; padding-top: 30px; margin-bottom: 30px; }
.footer-links h4 { font-size: 0.8rem; color: #ccc; margin-bottom: 12px; letter-spacing: 2px; }
.links-list { display: flex; flex-wrap: wrap; gap: 16px; }
.links-list a { font-size: 0.75rem; color: #666; transition: color 0.3s; }
.links-list a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.72rem; color: #555; line-height: 1.8; }

/* ===== 内页通用 ===== */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 40px 60px; text-align: center; color: #fff;
}
.page-banner h1 { font-size: 2rem; font-weight: 300; letter-spacing: 4px; }
.page-banner p { font-size: 0.9rem; color: #888; margin-top: 12px; letter-spacing: 1px; }

.page-content { max-width: 860px; margin: 0 auto; padding: 60px 40px; }
.page-content h2 { font-size: 1.3rem; color: #111; margin: 40px 0 16px; }
.page-content h3 { font-size: 1rem; color: #333; margin: 30px 0 12px; }
.page-content p { font-size: 0.9rem; color: #555; line-height: 1.9; margin-bottom: 16px; }

/* ===== 案例列表页 ===== */
.case-list-header { text-align: center; margin-bottom: 50px; }
.case-list-header .case-tabs { margin-bottom: 30px; }

.case-pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 50px;
}
.case-pagination a, .case-pagination span {
    display: inline-block; padding: 8px 16px; font-size: 0.8rem;
    border: 1px solid #ddd; color: #666; transition: all 0.3s;
}
.case-pagination a:hover { border-color: #111; color: #111; }
.case-pagination .current { background: #111; color: #fff; border-color: #111; }

/* ===== 案例详情页 ===== */
.case-detail { padding: 40px 0; }
.case-detail-header { text-align: center; margin-bottom: 40px; }
.case-detail-header h1 { font-size: 1.6rem; font-weight: 400; color: #111; }
.case-detail-header .case-meta { font-size: 0.8rem; color: #999; margin-top: 10px; }
.case-detail-body { max-width: 900px; margin: 0 auto; }
.case-detail-body img { margin: 20px auto; }
.case-detail-body p { font-size: 0.9rem; color: #555; line-height: 1.9; margin-bottom: 16px; }

/* ===== 观点列表页 ===== */
.news-list-page { max-width: 860px; margin: 0 auto; }
.news-list-item { padding: 25px 0; border-bottom: 1px solid #eee; }
.news-list-item a { display: block; }
.news-list-item h3 { font-size: 1.05rem; color: #222; margin-bottom: 8px; font-weight: 500; }
.news-list-item p { font-size: 0.8rem; color: #999; }
.news-list-item .news-date { font-size: 0.75rem; color: #bbb; margin-top: 6px; }

/* ===== 观点详情页 ===== */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-detail h1 { font-size: 1.5rem; color: #111; font-weight: 500; margin-bottom: 16px; }
.article-detail .article-meta { font-size: 0.8rem; color: #bbb; margin-bottom: 40px; }
.article-detail .article-body { font-size: 0.95rem; color: #444; line-height: 2; }
.article-detail .article-body p { margin-bottom: 20px; }
.article-detail .article-body img { margin: 24px auto; max-width: 100%; }

.article-nav { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.article-nav a { font-size: 0.85rem; color: #666; }
.article-nav a:hover { color: #111; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr; gap: 30px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 0.9rem; }
    .section { padding: 60px 0; }
    .section-inner { padding: 0 24px; }
    .section-title { font-size: 1.5rem; }

    .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(0,0,0,0.95); padding: 20px 0; margin: 0; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 0; }
    .main-nav ul li { width: 100%; text-align: center; }
    .main-nav ul a { display: block; padding: 14px 0; font-size: 1rem; }
    .header-phone { display: none; }
    .mobile-toggle { display: flex; margin-left: auto; }

    .case-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-card { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .hero { min-height: 500px; }
    .hero-title { font-size: 1.6rem; }
    .case-grid { grid-template-columns: 1fr; }
    .case-tabs { gap: 4px; }
    .tab-btn { padding: 6px 14px; font-size: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .case-pagination a, .case-pagination span { padding: 6px 12px; font-size: 0.75rem; }
}
