/* ==========================================
   深圳商办网 - 专业商务风格样式表
   主色调: 深蓝 #1e3a5f | 强调色: 橙红 #e74c3c
   ========================================== */

/* 基础重置与变量 */
:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --primary-dark: #152a45;
    --accent: #e74c3c;
    --accent-light: #ff6b5b;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #e8ecf1;
    --border: #e0e4e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    background: var(--bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.city-select {
    font-weight: 600;
    cursor: pointer;
}

.hot-areas a {
    color: rgba(255,255,255,0.8);
    margin-right: 16px;
    font-size: 12px;
}

.hot-areas a:hover {
    color: #fff;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline {
    color: rgba(255,255,255,0.9);
}

.login-btn {
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
}

.login-btn:hover {
    background: var(--accent-light);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    border-radius: 4px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    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;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* 搜索区域 */
.hero-section {
    padding: 40px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 背景轮播 */
.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-bg-slideshow .slide.active {
    opacity: 1;
}

.hero-bg-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 深色遮罩保证文字可读性 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(21, 42, 69, 0.88) 0%,
        rgba(30, 58, 95, 0.82) 50%,
        rgba(44, 82, 130, 0.75) 100%
    );
    z-index: 1;
}

/* 当前建筑名称标签 */
.building-name-tag {
    position: absolute;
    bottom: 80px;
    right: 40px;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeInUp 0.8s ease;
}

.building-name-tag::before {
    content: '🏢 ';
}

/* 轮播指示器 */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.slide-indicators .indicator {
    width: 32px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.slide-indicators .indicator.active {
    background: var(--accent);
    width: 48px;
}

.slide-indicators .indicator:hover {
    background: rgba(255,255,255,0.6);
}

.stats-bar {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.stats-bar strong {
    font-size: 20px;
    margin: 0 4px;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.slogan {
    text-align: center;
    margin-bottom: 25px;
}

.slogan h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.slogan p {
    font-size: 16px;
    opacity: 0.85;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.tab-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 10px 28px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.tab-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.tab-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.25);
}

.tab-btn.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
}

.search-input-group {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 15px;
    outline: none;
    color: var(--text);
}

.search-input-group input::placeholder {
    color: var(--text-muted);
}

.map-search {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--primary);
    font-size: 14px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.map-search:hover {
    background: var(--bg-light);
}

.search-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #c0392b;
}

/* 市场数据 */
.market-data {
    background: var(--bg-light);
    padding: 30px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.data-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.data-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.data-card.highlight {
    background: var(--primary);
    color: #fff;
}

.data-card.highlight .data-label {
    color: rgba(255,255,255,0.7);
}

.data-card.highlight .data-trend {
    color: rgba(255,255,255,0.8);
}

.data-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.data-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.data-card.highlight .data-value {
    color: #fff;
}

.data-value .unit {
    font-size: 13px;
    font-weight: 400;
    margin-left: 4px;
}

.data-trend {
    font-size: 12px;
    color: var(--text-light);
}

.data-trend.up {
    color: #e74c3c;
}

.data-trend.up::before {
    content: '↑ ';
}

/* 板块通用样式 */
section {
    padding: 50px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.section-title span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.more-link {
    font-size: 14px;
    color: var(--primary);
}

.more-link:hover {
    color: var(--accent);
}

/* 核心优势 */
.advantages {
    background: var(--bg);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.advantage-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.advantage-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.advantage-item h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--primary);
}

.advantage-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 热门商圈 */
.hot-areas-section {
    background: var(--bg-light);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.area-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.area-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.area-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.area-card:hover img {
    transform: scale(1.05);
}

.area-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.area-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.area-info p {
    font-size: 13px;
    opacity: 0.9;
}

/* 优质楼盘 */
.building-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.building-card,
.newhouse-card,
.shop-card,
.coworking-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.building-card:hover,
.newhouse-card:hover,
.shop-card:hover,
.coworking-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.building-card img,
.newhouse-card img,
.shop-card img,
.coworking-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.building-info,
.newhouse-info,
.shop-info,
.coworking-info {
    padding: 16px;
}

.building-info h3,
.newhouse-info h3,
.shop-info h3,
.coworking-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.building-area,
.shop-area {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.building-views {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.building-price,
.newhouse-price,
.coworking-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.building-price .unit,
.newhouse-price .unit,
.coworking-price .unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.building-tag {
    font-size: 12px;
    color: var(--primary);
    background: rgba(30,58,95,0.08);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* 精选写字楼 */
.office-list {
    background: var(--bg-light);
}

.office-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.office-item {
    display: flex;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.office-item:hover {
    box-shadow: var(--shadow-hover);
}

.office-item img {
    width: 300px;
    height: 220px;
    object-fit: cover;
}

.office-detail {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.office-detail h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.office-area {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.office-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    font-size: 12px;
    color: var(--primary);
    background: rgba(30,58,95,0.08);
    padding: 3px 10px;
    border-radius: 4px;
}

.office-desc {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
}

.office-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

.office-price .unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* 精选新房 */
.newhouse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.status-badge.onsale {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 精选商铺 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
}

.shop-price .monthly {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.shop-price .unit-price {
    font-size: 14px;
    color: var(--text-muted);
}

/* 共享办公 */
.coworking-section {
    background: var(--bg-light);
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.brand-logo {
    background: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
    font-size: 14px;
}

.coworking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 问答百科 */
.news-section {
    background: var(--bg);
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.news-item,
.qa-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.news-item a,
.qa-item a {
    font-size: 14px;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
}

.news-item a:hover,
.qa-item a:hover {
    color: var(--primary);
}

.news-date,
.qa-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231,76,60,0.4);
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.hotline-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

/* 响应式 */
@media (max-width: 1024px) {
    .advantage-grid,
    .building-grid,
    .area-grid,
    .shop-grid,
    .coworking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .slogan h1 {
        font-size: 28px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .map-search {
        border-left: none;
        border-top: 1px solid var(--border);
        justify-content: center;
        padding: 10px;
    }
    
    .search-btn {
        padding: 14px;
    }
    
    .advantage-grid,
    .building-grid,
    .area-grid,
    .newhouse-grid,
    .shop-grid,
    .coworking-grid,
    .data-cards {
        grid-template-columns: 1fr;
    }
    
    .office-item {
        flex-direction: column;
    }
    
    .office-item img {
        width: 100%;
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
    }
}
