/* ============================================================
   文件: frontend/css/style.css
   功能: 航丹电子官网 - 全局样式
   ============================================================ */

:root {
    --primary: #0066cc;
    --secondary: #333366;
    --accent: #ff9500;
    --light: #f5f7fa;
    --dark: #1a1a2e;
    --text: #333;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border: 1px solid rgba(255, 255, 255, 0.2);
    --hot: #ff5722;
    --recommend: #28a745;
    --new: #9c27b0;
    --elegant-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --gold: #d4af37;
    --neon-blue: #4d79ff;
    --neon-purple: #9d4dff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 102, 204, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0066cc, #4d79ff);
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(77, 121, 255, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4d79ff, #0066cc);
    box-shadow: 0 0 15px rgba(77, 121, 255, 0.7);
}
* {
    scrollbar-width: thin;
    scrollbar-color: #0066cc rgba(0, 102, 204, 0.1);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

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

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes logoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.logo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    animation: logoPulse 3s ease-in-out infinite;
}
.logo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    background: white;
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.1);
    object-fit: contain;
}
.logo-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #0066cc 20%,
        rgba(0, 102, 204, 0.7) 40%,
        transparent 60%,
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.4);
    filter: blur(1px);
}
.logo-border::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: white;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}
nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
}
nav a:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}
.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px var(--neon-blue);
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.4);
    opacity: 0.7;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}
.btn:hover {
    opacity: 0.9;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 25px var(--neon-blue);
}
.btn:hover::before {
    left: 100%;
}

/* 公司简介 */
.company-intro {
    padding: 100px 0;
    color: white;
}
.intro-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.intro-image {
    flex: 1;
    height: 430px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
    position: relative;
}
.intro-image:hover {
    transform: scale(1.02);
}
.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.intro-image:hover img {
    transform: scale(1.05);
}
.intro-content {
    flex: 1;
}
.intro-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.intro-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 分类/推荐产品 */
.categories {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title p {
    color: white;
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.category-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.category-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover .category-image img {
    transform: scale(1.05);
}
.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}
.category-card p {
    color: var(--secondary);
    margin-bottom: 20px;
}

/* 产品中心 */
.products {
    padding: 100px 0;
}
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.product-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--elegant-shadow);
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.product-card:hover .product-overlay {
    transform: translateY(0);
}

/* 工厂车间 */
.factory {
    padding: 100px 0;
}
.factory-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.factory-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--elegant-shadow);
    height: 350px;
    position: relative;
}
.factory-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.factory-card:hover .factory-img {
    transform: scale(1.05);
}
.factory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
}

/* 新品中心 */
.design {
    padding: 100px 0;
}
.design-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.design-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--elegant-shadow);
    background-size: cover;
    background-position: center;
}
.design-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.design-card:hover .design-overlay {
    transform: translateY(0);
}

/* 联系表单 */
.contact {
    padding: 50px 0 100px;
}
.contact-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--border);
    box-shadow: var(--elegant-shadow);
    position: relative;
    overflow: hidden;
}
.contact-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 20px;
}
.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.contact-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}
.contact-form { width: 100%; }

.form-row-two {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}
.form-group-horizontal {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}
.form-group-horizontal label {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    text-align: right;
    white-space: nowrap;
}
.form-group-horizontal label.required::after {
    content: ' *';
    color: #ff5722;
}
.form-group-horizontal input,
.form-group-horizontal select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
}
.form-group-horizontal input:focus,
.form-group-horizontal select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

.form-group-single {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.form-group-single label {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    text-align: right;
    white-space: nowrap;
    padding-top: 12px;
}
.form-group-single label.required::after {
    content: ' *';
    color: #ff5722;
}
.form-group-single select,
.form-group-single textarea {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
}
.form-group-single textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}
.form-group-single select:focus,
.form-group-single textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

.submit-btn {
    display: block;
    width: 50%;
    max-width: 150px;
    margin: 30px auto 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.submit-btn:active { transform: translateY(-1px); }
.submit-btn i { margin-right: 8px; }

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
    line-height: 1.5;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.form-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 2px solid #2ecc71;
    display: flex;
}
.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 2px solid #e74c3c;
    display: flex;
}
.form-loading {
    display: none;
    text-align: center;
    margin-top: 15px;
    color: var(--primary);
    font-size: 0.95rem;
}
.form-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 180px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 10px var(--neon-blue);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 15px var(--neon-blue);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* 页脚 */
footer {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 50px 0 20px;
    border-top: var(--border);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 15px; }
.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-column ul li a:hover { color: white; }
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
    .contact-container { max-width: 100%; margin: 0 20px; }
}
@media (max-width: 1200px) {
    .category-grid, .product-showcase, .design-showcase {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .intro-container { flex-direction: column; }
    .intro-image { width: 100%; }
}
@media (max-width: 992px) {
    nav ul { gap: 15px; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .header-container { flex-direction: row; justify-content: space-between; }
    .menu-toggle { display: flex; }
    nav {
        position: fixed;
        top: 63px;
        left: -100%;
        width: auto;
        min-width: 140px;
        max-width: 200px;
        height: auto;
        max-height: 70vh;
        background: var(--glass);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 20px;
        padding-bottom: 20px;
        overflow-y: auto;
    }
    nav.active { left: 0; }
    nav ul {
        align-items: flex-start;
        flex-direction: column;
        padding: 8px 12px;
        gap: 5px;
    }
    nav a {
        justify-content: flex-start;
        text-align: left;
        padding: 12px 15px 12px 20px;
        width: 100%;
        font-size: 0.95rem;
        border-radius: 8px;
        line-height: 1.4;
    }
    nav a i { font-size: 0.9rem; min-width: 20px; text-align: center; }
    .hero { text-align: center; padding-top: 70px; }
    .hero-content { margin: 0 auto; }
    .section-title h2 { font-size: 2rem; }
    .factory-gallery { grid-template-columns: 1fr; }
    .contact-container { padding: 30px 20px; }
    .contact-title { font-size: 1.8rem; }
    .logo-wrapper { width: 40px; height: 40px; }
    .logo-border { top: -3px; left: -3px; right: -3px; bottom: -3px; }
    .logo-border::after { inset: 3px; }
    .back-to-top { width: 40px; height: 40px; font-size: 1rem; bottom: 60px; right: 20px; }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    .nav-overlay.active { display: block; }
    .form-row-two { flex-direction: column; gap: 20px; }
    .form-group-horizontal, .form-group-single {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .form-group-horizontal label, .form-group-single label {
        text-align: left;
        width: 100%;
        padding-top: 0;
    }
    .form-group-horizontal input, .form-group-horizontal select,
    .form-group-single select, .form-group-single textarea { width: 100%; }
    .submit-btn { width: 70%; max-width: 100%; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .btn { padding: 12px 25px; }
    .back-to-top { width: 35px; height: 35px; font-size: 0.9rem; bottom: 15px; right: 15px; }
    .intro-image { height: 350px; }
    .intro-content h2 { font-size: 2rem; }
    .contact-container { padding: 25px 15px; }
    .contact-title { font-size: 1.6rem; }
    .contact-description { font-size: 0.95rem; margin-bottom: 25px; }
    .submit-btn { width: 80%; padding: 12px 20px; }
    nav { min-width: 200px; max-width: 220px; }
    nav ul { gap: 4px; padding: 8px 10px; }
    nav a { padding: 8px 10px; font-size: 0.9rem; }
    .logo-wrapper { width: 35px; height: 35px; }
    .logo-text { font-size: 1.5rem; }
    .floating-holiday-notice {
        bottom: 150px;
        right: 15px;
        width: 250px;
        animation: floatNoticeMobile 3s ease-in-out infinite;
    }
    @keyframes floatNoticeMobile {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-5px) scale(1.01); }
    }
    .floating-close-btn { top: 8px; right: 8px; width: 22px; height: 22px; font-size: 0.8rem; }
    .holiday-content { padding: 20px 15px 15px; }
    .holiday-content h4 { font-size: 1.2rem; }
    .holiday-icon { width: 45px; height: 45px; font-size: 1.3rem; }
    .holiday-call { padding: 8px 12px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    nav { min-width: 200px; max-width: 220px; }
    nav ul { gap: 4px; padding: 8px 10px; }
    nav a { padding: 8px 10px; font-size: 0.9rem; }
    .logo-wrapper { width: 35px; height: 35px; }
    .logo-text { font-size: 1.5rem; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.fade-in { animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* 产品标签 */
.product-tag {
    position: absolute;
    top: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 2;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
}
.tag-right { right: 15px; }
.tag-left { left: 15px; }

/* 浮动公告 */
.floating-holiday-notice {
    display: none;
    position: fixed;
    bottom: 180px;
    right: 20px;
    width: 280px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4),
                0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 1002;
    overflow: hidden;
    border: 2px solid #ffd166;
    animation: floatNotice 3s ease-in-out infinite;
    transform-origin: center;
    backdrop-filter: blur(10px);
}
@keyframes floatNotice {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}
.floating-holiday-notice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd166, #ff6b6b, #ffd166);
    animation: ribbonMove 3s linear infinite;
}
@keyframes ribbonMove {
    0% { background-position: -100px 0; }
    100% { background-position: 100px 0; }
}
.floating-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}
.floating-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    color: #ffd166;
}
.holiday-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #ffd166;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #d62828;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: iconFloat 2s ease-in-out infinite alternate;
}
@keyframes iconFloat {
    0% { transform: translateY(0) rotate(-10deg); }
    100% { transform: translateY(-5px) rotate(10deg); }
}
.holiday-content {
    padding: 25px 20px 20px;
    color: white;
    position: relative;
    z-index: 1;
}
.holiday-content h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.holiday-content h4 i { color: #ffd166; }
.holiday-content p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}
.holiday-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 15px 0 !important;
    font-size: 0.9rem;
    border-left: 3px solid #ffd166;
}
.holiday-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.holiday-call {
    flex: 1;
    background: #ffd166;
    color: #d62828;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.holiday-call:hover {
    background: #ffed99;
    transform: translateY(-2px);
    color: #d62828;
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.4);
}
.holiday-ribbon {
    position: absolute;
    top: 10px;
    right: -35px;
    background: #ffd166;
    color: #d62828;
    padding: 4px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}
@media (max-width: 768px) {
    .floating-holiday-notice { bottom: 160px; right: 20px; width: 260px; }
}

/* 在线客服按钮 */
.chat-float-button {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 1002;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4),
                0 0 15px rgba(18, 140, 126, 0.5);
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: chatPulse 2s infinite;
    text-decoration: none;
}
.chat-float-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6),
                0 0 20px rgba(18, 140, 126, 0.7);
    background: linear-gradient(135deg, #128C7E, #25D366);
}
.chat-float-button.wechat {
    background: linear-gradient(135deg, #07C160, #05A44F);
    bottom: 160px;
}
.chat-float-button.wechat:hover {
    background: linear-gradient(135deg, #05A44F, #07C160);
}
@keyframes chatPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4),
                    0 0 15px rgba(18, 140, 126, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6),
                    0 0 20px rgba(18, 140, 126, 0.7);
    }
}

/* 微信二维码弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    bottom: 210px;
    left: 30px;
    width: 220px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    padding: 20px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}
.wechat-modal::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.wechat-modal h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
}
.wechat-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}
.wechat-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wechat-modal p {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}
@media (max-width: 768px) {
    .chat-float-button { width: 50px; height: 50px; font-size: 1.5rem; bottom: 80px; left: 20px; }
    .chat-float-button.wechat { bottom: 140px; }
    .wechat-modal { bottom: 190px; left: 20px; width: 200px; padding: 15px; }
    .wechat-modal::after { left: 25px; }
    .wechat-qr { width: 160px; height: 160px; }
}
@media (max-width: 480px) {
    .chat-float-button { width: 45px; height: 45px; font-size: 1.3rem; bottom: 70px; left: 15px; }
    .chat-float-button.wechat { bottom: 125px; }
    .wechat-modal { bottom: 170px; left: 15px; width: 180px; padding: 12px; }
    .wechat-modal::after { left: 20px; }
    .wechat-qr { width: 150px; height: 150px; }
}
