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

/* === 变量定义 === */
: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; }
.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 === */
.banner { position: relative; height: 600px; overflow: hidden; }
.banner-slide {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.banner-content h1 { font-size: 52px; font-weight: 700; margin-bottom: 20px; }
.banner-content h1 .highlight { color: var(--primary); }
.banner-content p { font-size: 22px; margin-bottom: 40px; opacity: 0.9; }
.banner-content .btn-primary { font-size: 18px; padding: 16px 48px; }

/* === 品牌实力 === */
.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;
}
.story-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
}
.story-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 25px;
}
.story-author { display: flex; flex-direction: column; }
.author-name { font-size: 16px; font-weight: 600; color: var(--dark); }
.author-title { font-size: 13px; color: var(--gray-light); }
.story-house {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
}

/* === 新闻 === */
.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-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); }
    .banner-content h1 { font-size: 38px; }
}
@media (max-width: 768px) {
    .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 { height: 400px; }
    .banner-slide { height: 400px; }
    .banner-content h1 { font-size: 28px; }
    .banner-content p { font-size: 16px; }
    .section { padding: 50px 0; }
}
