/* ========================================
   OK023.COM.CN - GEO 本地生活营销官网
   健身运动风格 - 正红 + 黑色 + 浅灰
   左右图文对撞错位布局
   ======================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Color Variables */
:root {
    --primary-red: #D32F2F;
    --dark-black: #1a1a1a;
    --light-gray: #f5f5f5;
    --medium-gray: #9e9e9e;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   顶部导航栏 - 固定响应式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}

/* ========================================
   全屏 Banner - 首页
   ======================================== */
.banner {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--dark-black) 0%, #2c2c2c 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.banner-text {
    padding-right: 40px;
}

.banner-title {
    font-size: 64px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 30px;
    animation: slideInLeft 1s ease;
}

.banner-title span {
    color: var(--primary-red);
    display: block;
}

.banner-subtitle {
    font-size: 24px;
    color: var(--medium-gray);
    margin-bottom: 40px;
    animation: slideInLeft 1.2s ease;
}

.banner-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1.4s ease;
    border: 2px solid var(--primary-red);
}

.banner-btn:hover {
    background: transparent;
    color: var(--primary-red);
}

.banner-image {
    position: relative;
    animation: slideInRight 1s ease;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 25px auto 0;
}

/* ========================================
   左右错位布局 - 核心优势
   ======================================== */
.feature-section {
    background: var(--white);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.1);
}

.feature-content {
    padding: 80px 60px;
    background: var(--dark-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h3 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 25px;
}

.feature-content p {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-list {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 28px;
    height: 28px;
}

.feature-item span {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   服务卡片 - 网格布局
   ======================================== */
.services-section {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
}

.service-card h4 {
    font-size: 20px;
    color: var(--dark-black);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ========================================
   案例展示 - 交错布局
   ======================================== */
.cases-section {
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.case-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.case-image {
    height: 280px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 25px;
    background: var(--dark-black);
}

.case-info h4 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 10px;
}

.case-info p {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.6;
}

.case-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
}

.case-link:hover {
    color: var(--white);
}

/* ========================================
   资讯列表 - 首页下方
   ======================================== */
.news-section {
    background: var(--light-gray);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.news-tab {
    padding: 12px 30px;
    background: var(--white);
    color: var(--dark-black);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-tab:hover,
.news-tab.active {
    background: var(--primary-red);
    color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    font-size: 16px;
    color: var(--dark-black);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--medium-gray);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--dark-black);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo h3 span {
    color: var(--primary-red);
}

.footer-about p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact {
    color: var(--medium-gray);
    line-height: 2;
}

.footer-contact strong {
    color: var(--white);
}

.footer-title {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--medium-gray);
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 14px;
}

/* ========================================
   内页 Banner
   ======================================== */
.page-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-black) 0%, #2c2c2c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/page-banner-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-banner p {
    font-size: 20px;
    color: var(--medium-gray);
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--medium-gray);
}

.breadcrumb-list a {
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-red);
}

.breadcrumb-list span {
    color: var(--primary-red);
}

/* ========================================
   新闻列表页
   ======================================== */
.news-list-page {
    padding: 60px 0 100px;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ========================================
   新闻详情页
   ======================================== */
.news-detail-page {
    padding: 60px 0 100px;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
    font-size: 36px;
    color: var(--dark-black);
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 30px;
    color: var(--medium-gray);
    font-size: 14px;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-news h3 {
    font-size: 24px;
    color: var(--dark-black);
    margin-bottom: 30px;
}

/* ========================================
   关于页面
   ======================================== */
.about-intro {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    color: var(--dark-black);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 10px;
}

.stat-number {
    font-size: 48px;
    color: var(--primary-red);
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--medium-gray);
    margin-top: 10px;
    display: block;
}

/* ========================================
   联系页面
   ======================================== */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--dark-black);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 30px;
    height: 30px;
}

.contact-item h4 {
    font-size: 18px;
    color: var(--dark-black);
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 15px;
    color: var(--medium-gray);
    line-height: 1.6;
}

.contact-form {
    background: var(--light-gray);
    padding: 50px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--dark-black);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: #b71c1c;
    transform: translateY(-3px);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .banner-text {
        padding-right: 0;
    }
    
    .banner-title {
        font-size: 48px;
    }
    
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .feature-image {
        height: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 36px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   滚动渐入动画
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
