:root {
    --primary-color: #0EA5E9; /* 清新的天空蓝 */
    --secondary-color: #F97316; /* 温馨的活力橙 */
    --accent-color: #38BDF8;
    --text-main: #334155; /* 柔和的深灰褐 */
    --text-light: #64748B;
    --bg-white: #FFFFFF;
    --bg-gray: #F0F9FF; /* 极淡的蓝色背景 */
    --shadow-sm: 0 4px 6px -1px rgba(14, 165, 233, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(14, 165, 233, 0.1), 0 8px 10px -6px rgba(14, 165, 233, 0.05);
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link { text-decoration: none; }

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.logo-placeholder:hover { transform: scale(1.05); }

.logo-icon {
    font-size: 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-color);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动端菜单动画 */
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* 首屏 Hero */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* 遮罩层，确保文字清晰 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    transition: all 0.5s ease;
}

/* 文字切换动画类 */
.text-fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.text-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    font-size: 18px;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0284C7);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.3);
    border-radius: 50px; /* 更圆润的按钮 */
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    border: 1px solid white;
    color: var(--primary-color);
    backdrop-filter: blur(4px);
    border-radius: 50px;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

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

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 100px;
    color: var(--text-main);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 4px;
}

/* 关于我们 */
.about-section {
    background: linear-gradient(to bottom, #FFFFFF, #F8FAFC);
    position: relative;
    padding-top: 40px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 0 auto 60px;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 900px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: #E2E8F0;
}

.stat-num {
    display: inline-block;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-unit {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    background: white;
    padding: 50px 40px;
    border-radius: 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(14, 165, 233, 0.05);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.about-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 服务项目 */
.services-section {
    background: var(--bg-gray);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 32px; /* 更大的圆角 */
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(14, 165, 233, 0.05);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B6B, #EE5253);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.4);
}

.service-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-info {
    padding: 30px;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.franchise-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 24px;
}

/* 招商加盟 */
.franchise-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.franchise-text {
    flex: 1;
}

.franchise-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin: 40px 0;
}

.feature-list li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: var(--text-main);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.franchise-visual {
    flex: 1.2;
    position: relative;
}

.franchise-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
    background: white;
    padding: 20px;
}

.franchise-visual:hover .franchise-img {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { width: 12px; height: 12px; opacity: 1; }
    100% { width: 60px; height: 60px; opacity: 0; }
}

/* 联系我们 */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 16px;
}

.qr-codes {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.placeholder-qr {
    width: 150px;
    height: 150px;
    background: var(--bg-gray);
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.qr-item:hover .placeholder-qr {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background: linear-gradient(to right, #0F172A, #1E293B);
    color: #CBD5E1;
    padding: 80px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 15px;
}

.footer-info p {
    margin: 8px 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        text-align: center;
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .franchise-content, .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}
