: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);
    --neon-blue: #4d79ff;
    --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, 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;
    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);
}
* { 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; }
.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; 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%);
    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; }
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; }
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-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);
}
.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;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.4); opacity: 0.85;
}
.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: 1; 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%; }

/* 通用section */
.company-intro, .categories, .products, .factory, .design, .contact {
    padding: 80px 0;
}
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 2.5rem; color: white; margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); display: inline-block; position: relative;
}
.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: rgba(255,255,255,0.9); max-width: 700px; margin: 20px auto 0; font-size: 1.2rem; }

.intro-container { display: flex; align-items: center; gap: 50px; }
.intro-image { flex: 1; height: 400px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.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); }

.category-grid, .product-showcase, .design-showcase {
    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: 25px;
    text-align: center; backdrop-filter: blur(10px); border: var(--border);
    box-shadow: var(--shadow); transition: all 0.3s ease; text-decoration: none; color: inherit;
    position: relative; overflow: hidden; display: block;
}
.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: 20px; }
.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.3rem; margin-bottom: 10px; color: var(--dark); }
.category-card p { color: var(--secondary); }

.product-card {
    position: relative; height: 300px; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    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-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; }
.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); }
.product-overlay .btn { padding: 8px 20px; font-size: 0.9rem; opacity: 1; }

.factory-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 30px; }
.factory-card { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 300px; 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-card {
    position: relative; height: 300px; border-radius: 20px; overflow: hidden;
    background-size: cover; background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.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); }
.design-overlay .btn { padding: 8px 20px; font-size: 0.9rem; opacity: 1; }

/* 联系表单 */
.contact-container {
    background: rgba(255, 255, 255, 0.85); border-radius: 25px;
    padding: 40px; backdrop-filter: blur(15px); border: var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.contact-title { text-align: center; margin-bottom: 30px; font-size: 2rem; color: var(--dark); }
.contact-description { text-align: center; margin-bottom: 30px; color: var(--secondary); font-size: 1.1rem; }
.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); text-align: right; }
.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);
}
.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);
}
.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); text-align: right; 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);
}
.form-group-single textarea { min-height: 120px; resize: vertical; }
.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);
}
.submit-btn {
    display: block; width: 50%; max-width: 200px; margin: 20px auto 0;
    padding: 14px 20px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border: none; border-radius: 30px; font-size: 1.05rem;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    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); }
.form-message { padding: 15px; border-radius: 8px; margin-bottom: 20px; display: none; font-size: 0.95rem; text-align: center; }
.form-message.success { background: rgba(46,204,113,0.1); color: #27ae60; border: 2px solid #2ecc71; display: flex; align-items: center; justify-content: center; gap: 10px; }
.form-message.error { background: rgba(231,76,60,0.1); color: #c0392b; border: 2px solid #e74c3c; display: flex; align-items: center; justify-content: center; gap: 10px; }
.form-loading { display: none; text-align: center; margin-top: 15px; color: var(--primary); }
.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: 30px; right: 30px; width: 45px; height: 45px;
    border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; display: none; align-items: center; justify-content: center;
    font-size: 1.2rem; z-index: 1001; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    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); }

.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; }

footer {
    background: rgba(26, 26, 46, 0.8); 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); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.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; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }

@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .intro-container { flex-direction: column; }
    .intro-image { width: 100%; height: 300px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav {
        position: fixed; top: 63px; left: -100%; width: 200px; height: auto; max-height: 70vh;
        background: var(--glass); backdrop-filter: blur(15px);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1); transition: left 0.3s ease;
        z-index: 999; padding: 15px 0; overflow-y: auto;
    }
    nav.active { left: 0; }
    nav ul { flex-direction: column; padding: 0 15px; gap: 5px; }
    nav a { padding: 10px 15px; font-size: 0.95rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .form-row-two { flex-direction: column; gap: 15px; }
    .form-group-horizontal, .form-group-single { flex-direction: column; align-items: flex-start; gap: 5px; }
    .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%; }
    .factory-gallery { grid-template-columns: 1fr; }
    .contact-container { padding: 20px; }
    .submit-btn { width: 80%; }
    .logo-wrapper { width: 40px; height: 40px; }
    .logo-text { font-size: 1.5rem; }
    .back-to-top { width: 40px; height: 40px; font-size: 1rem; bottom: 20px; right: 20px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title h2 { font-size: 1.8rem; }
    .category-grid, .product-showcase, .design-showcase {
        grid-template-columns: 1fr 1fr;
    }
    nav { width: 180px; }
}
