/* ============================================
   堂杰国际设计官网 - 全站样式表
   ============================================ */

/* === 变量定义 === */
:root {
    --primary: #c8a96e;       /* 金色主色调 */
    --primary-dark: #a88a50;
    --accent: #e63946;        /* 红色强调 */
    --accent-dark: #c5303c;
    --dark: #1a1a2e;
    --gray-dark: #333;
    --gray: #666;
    --gray-light: #999;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --border: #e0e0e0;
    --shadow: rgba(0,0,0,0.1);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === 通用布局 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.section-sub { font-size: 16px; color: var(--gray); }
.section-footer { text-align: center; margin-top: 40px; }

/* === 按钮 === */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-more {
    display: inline-block;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    transition: 0.3s;
}
.btn-more:hover { background: var(--primary); color: #fff; }
.btn-quote {
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* === 顶部栏 === */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.city-selector i { margin-right: 5px; }
.contact-info i { margin-right: 5px; color: var(--primary); }
.contact-info { font-size: 16px; }

/* === 导航栏 === */
.header {
    background: #fff;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 50px; filter: contrast(1.55); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 22px; font-weight: 700; color: var(--dark); }
.logo-sub { font-size: 10px; color: var(--gray); letter-spacing: 2px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
    padding: 8px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* === 首页焦点图 === */
.banner.home-hero { position: relative; height: min(540px, calc(100vh - 260px)); min-height: 460px; overflow: hidden; background: #171513; }
.home-hero .banner-slide {
    position: relative;
    height: 100%;
    color: #fff;
    background: url('/static/images/home-hero-villa-20260712.jpg') center center / cover no-repeat;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,9,8,.78) 0%, rgba(10,9,8,.5) 34%, rgba(10,9,8,.06) 69%, rgba(10,9,8,.15) 100%);
}
.hero-inner { position: relative; width: min(1200px, calc(100% - 64px)); height: 100%; margin: 0 auto; }
.home-hero .banner-content { position: absolute; left: 0; top: 50%; width: 680px; transform: translateY(-52%); text-align: left; z-index: 2; }
.hero-eyebrow { display: block; margin-bottom: 24px; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: 4px; }
.home-hero .banner-content h1 { margin: 0; color: #fff; font-size: clamp(44px, 4vw, 68px); font-weight: 700; line-height: 1.16; letter-spacing: -2px; text-shadow: 0 3px 22px rgba(0,0,0,.22); }
.home-hero .banner-content h1 strong { margin-right: 12px; color: #e34b32; font-size: 1.18em; font-style: italic; }
.home-hero .banner-content h1 span { position: relative; color: #e34b32; }
.home-hero .banner-content h1 span::after { content: ''; position: absolute; left: 0; right: -8px; bottom: -5px; height: 5px; background: #e34b32; transform: skewX(-24deg); }
.home-hero .banner-content p { margin: 26px 0 34px; color: rgba(255,255,255,.88); font-size: 21px; letter-spacing: 4px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-primary { display: inline-flex; align-items: center; gap: 20px; padding: 15px 22px 15px 26px; border: 1px solid rgba(255,255,255,.75); color: #fff; font-size: 14px; letter-spacing: 2px; transition: .25s ease; }
.hero-primary:hover { background: #e34b32; border-color: #e34b32; transform: translateY(-2px); }
.hero-link { padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.55); color: #fff; font-size: 14px; }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); font-size: 9px; letter-spacing: 3px; transform: translateX(-50%); }
.hero-scroll span { width: 36px; height: 1px; background: rgba(255,255,255,.55); }

/* === 品牌实力 === */
.brand-strength { background: var(--dark); padding: 50px 0; }
.strength-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.strength-item { color: #fff; }
.strength-num {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.strength-num span { font-size: 28px; margin-left: 4px; }
.strength-label { font-size: 16px; margin-top: 10px; color: rgba(255,255,255,0.8); }

/* === 案例 === */
.cases-section { background: var(--bg-light); }
.style-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}
.tab {
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
}
.tab.active, .tab:hover {
    background: var(--primary);
    color: #fff;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 15px var(--shadow); transition: 0.3s; }
.case-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.case-img { position: relative; height: 260px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.case-card:hover .case-img img { transform: scale(1.08); }
.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.case-card:hover .case-overlay { opacity: 1; }
.btn-view {
    background: #fff;
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
}
.case-info { padding: 20px; }
.case-info h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.case-meta { display: flex; gap: 20px; font-size: 14px; color: var(--gray); }
.case-meta i { margin-right: 4px; color: var(--primary); }

/* === 服务流程 === */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.process-step {
    text-align: center;
    width: 150px;
}
.step-num {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.step-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-content p { font-size: 13px; color: var(--gray); }
.process-arrow { color: var(--border); font-size: 20px; }

/* === 团队 === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.team-card { text-align: center; }
.team-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.team-title { color: var(--primary); font-size: 14px; margin-bottom: 5px; }
.team-bio { font-size: 13px; color: var(--gray); }

/* === 施工体系 === */
.construction-section { background: var(--dark); color: #fff; }
.construction-section .section-title, .construction-section .section-sub { color: #fff; }
.construction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.construction-item {
    background: rgba(255,255,255,0.08);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.construction-item:hover { background: rgba(255,255,255,0.15); transform: translateY(-5px); }
.construction-icon { font-size: 48px; color: var(--primary); margin-bottom: 20px; }
.construction-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.construction-item p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* === 业主故事 === */
.stories-section { background: var(--bg-light); }
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.story-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.story-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.story-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 30px;
    flex: 1;
}
.story-author {
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.author-name { font-size: 16px; font-weight: 600; color: var(--dark); }
.author-title { font-size: 13px; color: var(--gray-light); }
.story-house {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
}

/* === 新闻 === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); transition: 0.3s; }
.news-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.news-date { font-size: 13px; color: var(--gray-light); margin-bottom: 12px; }
.news-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; color: var(--dark); }
.news-card p { font-size: 14px; color: var(--gray); margin-bottom: 15px; line-height: 1.7; }
.news-card a { font-size: 14px; color: var(--primary); font-weight: 600; }
.news-card a:hover { color: var(--primary-dark); }

/* === Footer === */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.3s;
}
.footer-social a:hover { background: var(--primary); }
.footer-social .social-xhs svg { width: 42px; height: 26px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact p { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-contact p i { color: var(--primary); width: 16px; }
.footer-contact .btn-primary { margin-top: 15px; }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* === 页面横幅 === */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: 0.8; }

/* === 在线客服 === */
.online-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.online-service a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230,57,70,0.4);
}
.online-service a:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(230,57,70,0.5); }

/* === 响应式 === */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .cases-grid, .team-grid, .stories-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .construction-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .strength-grid { grid-template-columns: repeat(2, 1fr); }
    .home-hero .banner-content { width: 610px; }
    .home-hero .banner-content h1 { font-size: 48px; }
}
@media (max-width: 768px) {
    .logo img { height: 36px; max-width: 216px; object-fit: contain; }
    .cases-grid, .team-grid, .stories-grid, .news-grid, .construction-grid { grid-template-columns: 1fr; }
    .strength-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; }
    .process-arrow { transform: rotate(90deg); }
    .banner.home-hero { height: 520px; min-height: 520px; }
    .home-hero .banner-slide { background-position: 61% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(10,9,8,.84), rgba(10,9,8,.32)); }
    .hero-inner { width: calc(100% - 40px); }
    .home-hero .banner-content { top: 48%; width: 100%; transform: translateY(-50%); }
    .hero-eyebrow { margin-bottom: 18px; font-size: 9px; letter-spacing: 2px; }
    .home-hero .banner-content h1 { font-size: clamp(31px, 9vw, 42px); line-height: 1.25; letter-spacing: -1px; }
    .home-hero .banner-content h1 strong { display: block; margin: 0 0 2px; }
    .home-hero .banner-content p { margin: 22px 0 28px; font-size: 15px; letter-spacing: 2px; }
    .hero-actions { gap: 18px; }
    .hero-primary { padding: 13px 17px; letter-spacing: 1px; }
    .hero-link { font-size: 12px; }
    .hero-scroll { display: none; }
    .section { padding: 50px 0; }
}
