/* ========================================
   郑州长建汽车租赁有限公司 - 全局样式
   香水潮流风：浅紫 + 亮粉 + 浅蓝
   ======================================== */

:root {
    --primary-purple: #d4a5e8;
    --bright-pink: #ff69b4;
    --light-blue: #87ceeb;
    --soft-lavender: #e6e6fa;
    --deep-purple: #9370db;
    --gradient-main: linear-gradient(135deg, #d4a5e8 0%, #ff69b4 50%, #87ceeb 100%);
    --gradient-hover: linear-gradient(135deg, #ff69b4 0%, #d4a5e8 50%, #87ceeb 100%);
    --shadow-soft: 0 4px 20px rgba(212, 165, 232, 0.3);
    --shadow-strong: 0 8px 40px rgba(255, 105, 180, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(180deg, #faf5ff 0%, #fff0f5 50%, #f0f8ff 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(212, 165, 232, 0.2);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(255, 105, 180, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #555;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: translateX(-50%);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--bright-pink);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--deep-purple);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   瀑布流卡片磁吸布局
   ======================================== */
.magnetic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.magnetic-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.magnetic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.magnetic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-purple);
}

.magnetic-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

/* ========================================
   全屏 Banner
   ======================================== */
.hero-banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-main);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: var(--bright-pink);
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   核心优势板块
   ======================================== */
.features-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #fff0f5 0%, #f0f8ff 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--deep-purple);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-main);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.feature-desc {
    color: #666;
    line-height: 1.8;
}

/* ========================================
   快速入口
   ======================================== */
.quick-access {
    padding: 5rem 2rem;
    background: white;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.access-item {
    background: var(--gradient-main);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.access-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

/* ========================================
   资讯列表
   ======================================== */
.news-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f0f8ff 0%, #faf5ff 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    color: var(--deep-purple);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(135deg, #2d1f3d 0%, #3d2f4d 100%);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--light-blue);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ddd;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--bright-pink);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    padding: 8rem 2rem 4rem;
    background: var(--gradient-main);
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.page-content {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--deep-purple);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .magnetic-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   滚动渐入动画
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   详情页样式
   ======================================== */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-title {
    font-size: 2.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.detail-meta {
    color: #999;
    font-size: 0.95rem;
}

.detail-content {
    line-height: 2;
    color: #444;
}

.detail-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.related-news {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--soft-lavender);
}

.related-news h3 {
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
}
