/* ========================================
   曹普家具官网 - 全局样式
   主色：#003366 (深蓝) + #D4AF37 (金色)
   ======================================== */

:root {
    --primary: #003366;
    --primary-dark: #002244;
    --primary-light: #004488;
    --gold: #D4AF37;
    --gold-light: #F0D878;
    --gold-dark: #B8962E;
    --white: #ffffff;
    --gray: #f5f5f5;
    --gray-light: #fafafa;
    --dark: #1a1a1a;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --shadow: 0 5px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0;
    background: var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px; 
    margin: 0 auto;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px; 
    height: 60px;
}

.logo {
    display: flex; 
    align-items: center; 
    gap: 10px;
    color: var(--white); 
    text-decoration: none;
}

.logo-icon {
    width: 40px; 
    height: 40px; 
    background: #d32f2f;
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: bold; 
    font-size: 14px; 
    color: white;
    flex-shrink: 0;
}

.logo-text { 
    font-size: 18px; 
    font-weight: bold; 
    letter-spacing: 1px;
}

.nav-links {
    display: flex; 
    gap: 30px; 
    list-style: none;
}

.nav-links a {
    color: var(--white); 
    text-decoration: none;
    font-size: 15px; 
    transition: var(--transition); 
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0;
    width: 0; 
    height: 2px; 
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover { 
    color: var(--gold); 
}

.mobile-menu-btn {
    display: none; 
    background: none; 
    border: none;
    color: white; 
    font-size: 24px; 
    cursor: pointer;
    padding: 5px;
}

/* ========================================
   首屏 Hero
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    overflow: hidden; 
    padding-top: 60px;
}

.hero::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    text-align: center; 
    color: var(--white);
    position: relative; 
    z-index: 2; 
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: inline-block; 
    background: var(--gold);
    color: var(--primary-dark); 
    padding: 8px 24px;
    border-radius: 30px; 
    font-size: 14px; 
    font-weight: bold;
    margin-bottom: 30px; 
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: bold; 
    margin-bottom: 20px;
    line-height: 1.2; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span { 
    color: var(--gold); 
}

.hero-slogan {
    font-size: clamp(18px, 3vw, 28px);
    margin-bottom: 30px; 
    opacity: 0.95;
    font-weight: 300; 
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-video {
    width: 100%; 
    max-width: 700px; 
    height: 300px;
    background: rgba(0,0,0,0.3); 
    border-radius: var(--radius-lg);
    margin: 30px auto; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 2px solid rgba(212,175,55,0.3); 
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.6s both;
    cursor: pointer;
}

.video-placeholder {
    text-align: center;
}

.play-btn {
    width: 70px; 
    height: 70px; 
    background: var(--gold);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--primary-dark); 
    font-size: 28px;
    margin: 0 auto 15px;
    box-shadow: 0 5px 20px rgba(212,175,55,0.4);
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-placeholder p {
    color: var(--gold);
    font-size: 16px; 
    letter-spacing: 3px;
}

.hero-info {
    display: flex; 
    justify-content: center; 
    gap: 40px;
    flex-wrap: wrap; 
    margin: 30px 0;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-info-item {
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-size: 16px;
}

.hero-info-item .icon {
    width: 40px; 
    height: 40px; 
    background: rgba(212,175,55,0.2);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--gold); 
    font-size: 18px;
    flex-shrink: 0;
}

.hero-cta {
    display: inline-block; 
    background: var(--gold);
    color: var(--primary-dark); 
    padding: 16px 50px;
    border-radius: 50px; 
    font-size: 18px; 
    font-weight: bold;
    text-decoration: none; 
    margin-top: 20px;
    transition: var(--transition); 
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
    border: 2px solid var(--gold);
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-cta:hover {
    background: transparent; 
    color: var(--gold);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute; 
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%); 
    color: var(--gold);
    animation: bounce 2s infinite; 
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   通用模块
   ======================================== */
.section {
    padding: 80px 20px; 
    max-width: 1200px; 
    margin: 0 auto;
}

.section-title {
    text-align: center; 
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--primary); 
    margin-bottom: 15px;
    font-weight: bold;
}

.section-title .subtitle {
    color: var(--text-light); 
    font-size: 16px;
    position: relative; 
    display: inline-block;
}

.section-title .subtitle::before,
.section-title .subtitle::after {
    content: ''; 
    position: absolute; 
    top: 50%;
    width: 40px; 
    height: 2px; 
    background: var(--gold);
}

.section-title .subtitle::before { 
    right: calc(100% + 15px); 
}

.section-title .subtitle::after { 
    left: calc(100% + 15px); 
}

/* ========================================
   工厂实力
   ======================================== */
.strength-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.strength-card {
    background: var(--white); 
    border-radius: var(--radius);
    padding: 40px 30px; 
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition); 
    border-top: 4px solid var(--gold);
}

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

.strength-card .num {
    font-size: 48px; 
    font-weight: bold; 
    color: var(--gold);
    line-height: 1; 
    margin-bottom: 10px;
}

.strength-card .unit {
    font-size: 20px;
}

.strength-card h3 {
    font-size: 20px; 
    color: var(--primary); 
    margin-bottom: 10px;
}

.strength-card p { 
    color: var(--text-light); 
    font-size: 14px; 
}

/* ========================================
   关于曹普
   ======================================== */
.about-content {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 60px; 
    align-items: center;
}

.about-text h3 {
    font-size: 28px; 
    color: var(--primary); 
    margin-bottom: 20px;
}

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

.about-awards {
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px;
    margin-top: 30px;
}

.award-tag {
    background: var(--primary); 
    color: white;
    padding: 10px 20px; 
    border-radius: 30px;
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: var(--transition);
}

.award-tag:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

.award-tag::before {
    content: '★'; 
    color: var(--gold); 
    font-size: 16px;
}

.about-images {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-img {
    background: linear-gradient(135deg, var(--gray), #e0e0e0);
    border-radius: var(--radius); 
    display: flex; 
    align-items: center;
    justify-content: center; 
    color: var(--text-light);
    font-size: 14px; 
    min-height: 180px;
    overflow: hidden;
    transition: var(--transition);
}

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

.about-img.large { 
    grid-column: span 2; 
    min-height: 220px; 
}

.about-img span {
    padding: 20px;
    text-align: center;
}

/* ========================================
   曹普床垫
   ======================================== */
.mattress-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mattress-card {
    background: var(--white); 
    border-radius: var(--radius-lg);
    overflow: hidden; 
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.mattress-img {
    height: 220px; 
    background: linear-gradient(135deg, var(--gray), #e0e0e0);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--text-light); 
    font-size: 14px;
    position: relative; 
    overflow: hidden;
    transition: var(--transition);
}

.mattress-img::before {
    content: attr(data-label);
    position: absolute; 
    top: 15px; 
    left: 15px;
    background: var(--gold); 
    color: var(--primary-dark);
    padding: 5px 15px; 
    border-radius: 20px;
    font-size: 12px; 
    font-weight: bold;
    z-index: 2;
}

.mattress-img span {
    padding: 20px;
    text-align: center;
}

.mattress-content { 
    padding: 30px; 
}

.mattress-content h3 {
    font-size: 22px; 
    color: var(--primary); 
    margin-bottom: 15px;
}

.mattress-content p {
    color: var(--text-light); 
    font-size: 14px;
    line-height: 1.8; 
    margin-bottom: 20px;
}

.mattress-params {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px;
    margin-bottom: 20px;
}

.mattress-params span {
    background: var(--gray); 
    padding: 5px 12px;
    border-radius: 20px; 
    font-size: 12px; 
    color: var(--text);
}

.mattress-warranty {
    display: flex; 
    align-items: center; 
    gap: 8px;
    color: var(--gold); 
    font-size: 14px; 
    font-weight: bold;
}

/* ========================================
   家具大卖场
   ======================================== */
.showroom-section { 
    background: var(--gray); 
}

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

.showroom-info h3 {
    font-size: 28px; 
    color: var(--primary); 
    margin-bottom: 20px;
}

.showroom-info > p:first-of-type {
    color: var(--text-light); 
    margin-bottom: 20px;
}

.address {
    background: var(--primary); 
    color: white;
    padding: 20px; 
    border-radius: 10px;
    margin: 20px 0; 
    display: flex; 
    align-items: center; 
    gap: 15px;
}

.address .icon {
    width: 50px; 
    height: 50px; 
    background: var(--gold);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 24px; 
    flex-shrink: 0;
}

.showroom-categories {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; 
    margin: 30px 0;
}

.showroom-cat {
    background: white; 
    padding: 20px; 
    border-radius: 10px;
    text-align: center; 
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.showroom-cat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--gold);
}

.showroom-cat .icon {
    font-size: 32px; 
    margin-bottom: 10px; 
    display: block;
}

.showroom-cat span { 
    font-size: 14px; 
    color: var(--text); 
    font-weight: bold; 
}

.showroom-services {
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
}

.service-tag {
    display: flex; 
    align-items: center; 
    gap: 8px;
    background: white; 
    padding: 12px 20px;
    border-radius: 30px; 
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-tag .check {
    width: 24px; 
    height: 24px; 
    background: var(--gold);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    font-size: 14px;
    flex-shrink: 0;
}

.showroom-map {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    border-radius: var(--radius-lg); 
    height: 450px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--text-light); 
    font-size: 16px;
    border: 3px solid var(--gold);
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    padding: 20px;
}

.map-placeholder p {
    margin-bottom: 8px;
}

/* ========================================
   客户案例
   ======================================== */
.cases-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white); 
    border-radius: var(--radius-lg);
    overflow: hidden; 
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.case-img {
    height: 250px; 
    background: linear-gradient(135deg, var(--gray), #e8e8e8);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
    transition: var(--transition);
}

.case-img span {
    padding: 20px;
    text-align: center;
}

.case-content { 
    padding: 30px; 
}

.case-content .tag {
    display: inline-block; 
    background: var(--gold);
    color: var(--primary-dark); 
    padding: 5px 15px;
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: bold;
    margin-bottom: 15px;
}

.case-content h3 {
    font-size: 20px; 
    color: var(--primary); 
    margin-bottom: 15px;
    line-height: 1.4;
}

.case-content p { 
    color: var(--text-light); 
    font-size: 14px; 
    line-height: 1.8; 
}

.case-content .saving {
    margin-top: 15px; 
    padding-top: 15px;
    border-top: 1px dashed var(--gray);
    color: #c62828; 
    font-weight: bold; 
    font-size: 16px;
}

/* ========================================
   新闻动态
   ======================================== */
.news-section { 
    background: var(--gray); 
}

.news-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white); 
    border-radius: var(--radius);
    overflow: hidden; 
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    cursor: pointer;
}

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

.news-img {
    height: 180px; 
    background: linear-gradient(135deg, var(--gray), #e0e0e0);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--text-light); 
    font-size: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.news-img span {
    padding: 20px;
    text-align: center;
}

.news-content { 
    padding: 25px; 
}

.news-content .date {
    color: var(--gold); 
    font-size: 13px; 
    font-weight: bold;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px; 
    color: var(--primary); 
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--gold);
}

.news-content p {
    color: var(--text-light); 
    font-size: 14px;
    line-height: 1.7; 
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   联系我们
   ======================================== */
.contact-section { 
    background: var(--primary); 
    color: white; 
}

.contact-section .section-title h2 { 
    color: white; 
}

.contact-section .section-title .subtitle { 
    color: rgba(255,255,255,0.7); 
}

.contact-section .section-title .subtitle::before,
.contact-section .section-title .subtitle::after { 
    background: var(--gold); 
}

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

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

.contact-item {
    display: flex; 
    align-items: flex-start; 
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px; 
    height: 50px; 
    background: rgba(212,175,55,0.2);
    border-radius: 50%; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    color: var(--gold);
    font-size: 20px; 
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .icon {
    background: var(--gold);
    color: var(--primary-dark);
}

.contact-item h4 { 
    font-size: 16px; 
    margin-bottom: 5px; 
}

.contact-item p { 
    color: rgba(255,255,255,0.8); 
    font-size: 15px; 
}

.contact-item .phone {
    font-size: 28px; 
    color: var(--gold); 
    font-weight: bold;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); 
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form h3 {
    font-size: 22px; 
    margin-bottom: 10px; 
    color: var(--gold);
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label {
    display: block; 
    margin-bottom: 8px;
    font-size: 14px; 
    color: rgba(255,255,255,0.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; 
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; 
    background: rgba(255,255,255,0.08);
    color: white; 
    font-size: 15px; 
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; 
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { 
    color: rgba(255,255,255,0.4); 
}

.form-group textarea { 
    min-height: 100px; 
    resize: vertical; 
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="white"><path d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select option {
    background: var(--primary);
    color: white;
}

.submit-btn {
    width: 100%; 
    padding: 16px;
    background: var(--gold); 
    color: var(--primary-dark);
    border: none; 
    border-radius: 8px;
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--gold-light); 
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,175,55,0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--primary-dark); 
    color: rgba(255,255,255,0.6);
    padding: 40px 20px; 
    text-align: center;
}

.footer p { 
    font-size: 14px; 
    margin-bottom: 10px; 
}

.footer a { 
    color: var(--gold); 
    text-decoration: none; 
}

/* ========================================
   浮动按钮
   ======================================== */
.float-btns {
    position: fixed; 
    right: 20px; 
    bottom: 100px;
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 56px; 
    height: 56px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    font-size: 24px; 
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: var(--transition); 
    text-decoration: none;
}

.float-btn:hover { 
    transform: scale(1.1); 
}

.float-btn.phone { 
    background: var(--gold); 
    color: var(--primary-dark); 
}

.float-btn.map { 
    background: #07c160; 
}

.float-btn.top { 
    background: var(--primary); 
}

/* ========================================
   弹窗
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: scaleIn 0.3s ease;
}

.modal-icon {
    width: 60px; height: 60px;
    background: #4caf50;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 30px;
    margin: 0 auto 20px;
}

.modal-content h3 {
    font-size: 22px; color: var(--primary);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-light); font-size: 14px;
    margin-bottom: 25px;
}

.modal-close {
    background: var(--gold); color: var(--primary-dark);
    border: none; padding: 12px 40px;
    border-radius: 25px; font-size: 16px;
    font-weight: bold; cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gold-light);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in {
    opacity: 0; 
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ========================================
   响应式 (手机优先)
   ======================================== */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

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

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

    .hero h1 { 
        font-size: 28px; 
    }

    .hero-slogan { 
        font-size: 16px; 
    }

    .hero-info { 
        gap: 15px; 
    }

    .hero-info-item { 
        font-size: 13px; 
    }

    .hero-info-item .icon {
        width: 35px; height: 35px;
        font-size: 16px;
    }

    .hero-video {
        height: 200px;
    }

    .showroom-content,
    .about-content,
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    .showroom-categories { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .about-images { 
        grid-template-columns: 1fr; 
    }

    .about-img.large { 
        grid-column: span 1; 
    }

    .section { 
        padding: 50px 15px; 
    }

    .section-title { 
        margin-bottom: 40px; 
    }

    .section-title h2 {
        font-size: 24px;
    }

    .strength-card .num {
        font-size: 36px;
    }

    .mattress-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .case-card,
    .news-card {
        max-width: 100%;
    }

    .float-btns { 
        right: 10px; 
        bottom: 80px; 
    }

    .float-btn { 
        width: 48px; 
        height: 48px; 
        font-size: 20px; 
    }

    .contact-item .phone {
        font-size: 22px;
    }

    .contact-form {
        padding: 25px;
    }

    .showroom-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-cta {
        padding: 14px 35px;
        font-size: 16px;
    }

    .showroom-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .showroom-cat {
        padding: 15px 10px;
    }

    .showroom-cat .icon {
        font-size: 24px;
    }

    .service-tag {
        padding: 10px 15px;
        font-size: 13px;
    }

    .about-text h3,
    .showroom-info h3 {
        font-size: 22px;
    }
}
