/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a227;
    --primary-dark: #a88420;
    --secondary-color: #1a1a2e;
    --accent-color: #e94560;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 40px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo .company-name {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: bold;
    white-space: normal;
    text-decoration: none;
    max-width: 280px;
    line-height: 1.3;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.query-btn {
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.query-btn::after {
    display: none !important;
}

.query-btn:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* 轮播Banner */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    padding-top: 80px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    flex: 1;
    padding: 0 4% 0 6%;
    color: var(--white);
    min-width: 300px;
    max-width: 700px;
}

.slide-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease;
    white-space: normal;
}

.slide-content p {
    font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInLeft 0.8s ease 0.2s both;
    max-width: 100%;
    line-height: 1.6;
}

.slide-image {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 3%;
}

/* 轮播图产品图片 */
.hero-product-img {
    width: clamp(280px, 35vw, 500px);
    height: clamp(280px, 35vw, 500px);
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(201, 162, 39, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 火花塞3D效果 */
.spark-plug-3d {
    position: relative;
    width: 200px;
    height: 400px;
    animation: float 3s ease-in-out infinite;
}

.spark-plug-body {
    width: 60px;
    height: 300px;
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    border-radius: 10px 10px 5px 5px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spark-plug-body::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    border-radius: 5px 5px 0 0;
}

.spark-plug-body::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100px;
    background: linear-gradient(90deg, #4169e1 0%, #6495ed 50%, #4169e1 100%);
    border-radius: 0 0 3px 3px;
}

.spark-effect {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffff00 0%, #ff6600 50%, transparent 70%);
    border-radius: 50%;
    animation: spark 0.5s ease-in-out infinite alternate;
}

@keyframes spark {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 科技展示 */
.tech-showcase {
    position: relative;
    width: 300px;
    height: 300px;
}

.tech-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.tech-ring::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(201, 162, 39, 0.5);
    border-radius: 50%;
    animation: rotate 8s linear infinite reverse;
}

.tech-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* 认证徽章 */
.certification-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    animation: slideInRight 0.8s ease both;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent-color);
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--white);
}

.section-header .subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* 公司简介 */
.company-intro {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.intro-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.intro-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.intro-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.factory-showcase {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
}

.factory-building {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    clip-path: polygon(20% 100%, 20% 40%, 50% 20%, 80% 40%, 80% 100%);
}

.factory-building::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 15%;
    height: 20%;
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
    animation: windowLight 2s ease-in-out infinite alternate;
}

.factory-building::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 30%;
    width: 15%;
    height: 20%;
    background: #ffd700;
    box-shadow: 0 0 20px #ffd700;
    animation: windowLight 2s ease-in-out infinite alternate 0.5s;
}

@keyframes windowLight {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.smoke {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(200,200,200,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: smokeRise 3s ease-out infinite;
}

.smoke::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(200,200,200,0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: smokeRise 3s ease-out infinite 1s;
}

@keyframes smokeRise {
    0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) translateY(-100px) scale(2); opacity: 0; }
}

.factory-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* 公司实力 */
.company-strength {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #16213e 100%);
    color: var(--white);
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strength-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.strength-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.strength-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.strength-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.strength-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.strength-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* 产品分类 */
.product-categories {
    padding: 100px 0;
    background: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.category-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.category-card:hover .category-link {
    gap: 10px;
}

/* 材质分类 */
.material-categories {
    padding: 100px 0;
}

.material-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 15px 40px;
    background: var(--bg-light);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.material-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.material-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--primary-color);
}

.material-visual {
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.standard-plug {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.iridium-plug {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.platinum-plug {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.patent-plug {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.material-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 300px;
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.material-visual::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffff00 0%, #ff6600 50%, transparent 70%);
    border-radius: 50%;
    animation: spark 0.5s ease-in-out infinite alternate;
}

.material-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

/* 最新资讯 */
.latest-news {
    padding: 100px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

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

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.5;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.news-date .month {
    font-size: 0.8rem;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* 联系方式 */
.contact-section {
    padding: 100px 0;
}

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

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
}

.contact-map {
    height: 100%;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.map-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

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

/* 动画 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .logo .company-name {
        max-width: 220px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar .container {
        height: auto;
        min-height: 80px;
        padding: 10px 20px;
    }
    
    .logo .company-name {
        max-width: 200px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .slide {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        justify-content: flex-start;
    }
    
    .slide-content {
        flex: 0 0 auto;
        padding: 20px 5%;
        max-width: 100%;
        min-width: auto;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .slide-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .slide-image {
        flex: 0 0 auto;
        padding: 20px;
    }
    
    .hero-product-img {
        width: 280px;
        height: 280px;
    }
    
    .intro-content,
    .material-showcase,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .strength-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .material-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* 大屏幕优化 (1200px以上) */
@media (min-width: 1200px) {
    .slide-content {
        flex: 0 0 50%;
        padding: 0 3% 0 6%;
        min-width: 650px;
        max-width: 900px;
    }
    
    .slide-content h1 {
        font-size: 3rem;
        white-space: nowrap;
    }
    
    .slide-content p {
        font-size: 1.25rem;
        max-width: 100%;
        white-space: nowrap;
    }
    
    .slide-image {
        flex: 0 0 45%;
        justify-content: center;
        padding: 0 3%;
    }
    
    .hero-product-img {
        width: 500px;
        height: 500px;
    }
}

/* 超大屏幕优化 (1600px以上) */
@media (min-width: 1600px) {
    .slide-content {
        flex: 0 0 48%;
        padding: 0 4% 0 8%;
        min-width: 750px;
        max-width: 1000px;
    }
    
    .slide-content h1 {
        font-size: 3.2rem;
    }
    
    .slide-content p {
        font-size: 1.35rem;
        max-width: 100%;
    }
    
    .slide-image {
        flex: 0 0 48%;
        justify-content: center;
        padding: 0 4%;
    }
    
    .hero-product-img {
        width: 580px;
        height: 580px;
    }
}

/* 超宽屏幕优化 (1920px以上) */
@media (min-width: 1920px) {
    .slide-content {
        flex: 0 0 45%;
        padding: 0 5% 0 10%;
        min-width: 850px;
        max-width: 1100px;
    }
    
    .slide-content h1 {
        font-size: 3.5rem;
    }
    
    .slide-content p {
        font-size: 1.4rem;
    }
    
    .slide-image {
        flex: 0 0 50%;
        justify-content: center;
        padding: 0 5%;
    }
    
    .hero-product-img {
        width: 650px;
        height: 650px;
    }
}

/* 页面标题 */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #16213e 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* 关于我们页面 */
.about-content {
    padding: 80px 0;
}

.about-section {
    margin-bottom: 80px;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 20px;
}

.about-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--primary-color);
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.history-timeline {
    position: relative;
    padding-left: 40px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 产品页面 */
.products-page {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.sidebar {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: var(--transition);
}

.filter-option:hover {
    background: var(--bg-light);
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.filter-option span {
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

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

.product-image {
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.product-image i {
    font-size: 4rem;
    color: var(--text-muted);
}

.product-category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-model {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.product-specs span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-specs i {
    color: var(--primary-color);
    margin-right: 5px;
}

.product-material {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 产品详情页 */
.product-detail {
    padding: 80px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.product-gallery img {
    max-width: 95%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 15px;
}

.product-summary h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.product-meta span {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.product-specs-table th,
.product-specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.product-specs-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary-color);
    width: 40%;
}

.product-tabs {
    margin-top: 60px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--bg-light);
    margin-bottom: 30px;
}

.tab-nav button {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-nav button.active {
    color: var(--primary-color);
}

.tab-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.applications-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.application-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 13px;
}

.application-item i {
    color: var(--primary-color);
    font-size: 12px;
}

/* 响应式：平板显示3列 */
@media (max-width: 1024px) {
    .applications-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式：手机显示2列 */
@media (max-width: 768px) {
    .applications-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .application-item {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* 资讯页面 */
.news-page {
    padding: 80px 0;
    background: var(--bg-light);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.news-item-image {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-image i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.5;
}

.news-item-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-item-meta i {
    margin-right: 5px;
}

.news-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 资讯详情 */
.news-detail {
    padding: 80px 0;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-light);
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-content img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 30px;
}

.news-detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 联系页面 */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* 查询页面 */
.query-page {
    padding: 80px 0;
    background: var(--bg-light);
    min-height: calc(100vh - 300px);
}

.query-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.query-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.query-container > p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.query-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.query-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.query-input-group input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid var(--bg-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.query-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.query-btn-large {
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.query-btn-large:hover {
    background: var(--primary-dark);
}

.query-tips {
    text-align: left;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
}

.query-tips h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.query-tips ul {
    list-style: none;
    color: var(--text-light);
}

.query-tips li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.query-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-light);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
}

.pagination .page-btn {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.pagination .page-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.pagination .page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-ellipsis {
    padding: 10px 5px;
    color: var(--text-light);
}

.pagination .page-info {
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 14px;
    margin-left: 10px;
}

/* 后台管理样式 */
.admin-body {
    background: #f5f6fa;
    min-height: 100vh;
}

.admin-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
}

.admin-logo i {
    color: var(--primary-color);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.admin-user a:hover {
    color: var(--primary-color);
}

.admin-layout {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.admin-nav {
    list-style: none;
    padding: 20px 0;
}

.admin-nav li {
    margin-bottom: 5px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.admin-nav i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-page-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* 登录页面 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #16213e 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    justify-content: center;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.login-header p {
    color: var(--text-light);
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-form button:hover {
    background: var(--primary-dark);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

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

/* 数据表格 */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary-color);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.05);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-edit {
    background: #3498db;
    color: var(--white);
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: var(--white);
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-view {
    background: var(--primary-color);
    color: var(--white);
}

.btn-view:hover {
    background: var(--primary-dark);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-card-info h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-card-info p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* 搜索和筛选 */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.filter-bar input {
    flex: 1;
    min-width: 200px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-cancel {
    padding: 12px 25px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-save {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save:hover {
    background: var(--primary-dark);
}

/* 图片上传 */
.image-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-upload:hover {
    border-color: var(--primary-color);
    background: rgba(201, 162, 39, 0.05);
}

.image-upload i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.image-upload p {
    color: var(--text-light);
}

.image-preview {
    margin-top: 15px;
    max-width: 200px;
    border-radius: 10px;
}

/* 响应式表格 */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-item-image {
        min-height: 200px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .data-table table {
        min-width: 600px;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar input,
    .filter-bar select {
        width: 100%;
    }
    
    .query-input-group {
        flex-direction: column;
    }
    
    .query-btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 80px;
    right: 30px;
    padding: 15px 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

/* 英文版页面优化 */
html[lang="en"] .filter-option span {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

html[lang="en"] .filter-option input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    transform: scale(1.1);
}

html[lang="en"] .filter-option span {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    word-break: break-word;
    flex-shrink: 1;
}

html[lang="en"] .filter-group h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

html[lang="en"] .sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* 英文版产品卡片优化 */
html[lang="en"] .product-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
}

html[lang="en"] .product-card .model {
    font-size: 0.9rem;
}

html[lang="en"] .product-card .description {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 语言切换按钮 */
.lang-switcher {
    margin-left: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.lang-btn i {
    font-size: 0.85rem;
}

/* 响应式语言切换 */
@media (max-width: 1200px) {
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .lang-btn i {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* 英文版轮播图布局优化 */
.lang-en .slide {
    justify-content: space-between;
}

.lang-en .slide-content {
    flex: 0 0 55%;
    max-width: 55%;
    min-width: auto;
    padding-right: 2%;
}

.lang-en .slide-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.lang-en .slide-content h1 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.lang-en .slide-content p {
    font-size: clamp(0.8rem, 1vw, 1rem);
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 英文版轮播图响应式优化 */
@media (max-width: 1200px) {
    .lang-en .slide-content {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .lang-en .slide-image {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .lang-en .slide-content h1 {
        font-size: clamp(1.3rem, 2vw, 1.8rem);
    }
    
    .lang-en .slide-content p {
        font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    }
}

@media (max-width: 768px) {
    .lang-en .slide {
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .lang-en .slide-content {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 20px 5%;
    }
    
    .lang-en .slide-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 20px;
    }
    
    .lang-en .slide-content h1 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .lang-en .slide-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}