/* ==================== CSS变量 - 黑金配色 ==================== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: #0a0a0a;
    --accent-gold: #FFD700;
    --accent-gold-dark: #B8860B;
    --accent-gold-light: #FFF8DC;
    --accent-gold-glow: rgba(255, 215, 0, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --gradient-primary: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-gold: linear-gradient(135deg, #FFD700, #DAA520, #B8860B);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.4);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* 科技感网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 215, 0, 0.02) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
}

.navbar.scrolled::before {
    opacity: 0.5;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

.logo-placeholder {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--accent-gold-glow);
}

.logo img {
    height: 40px;
    filter: sepia(1) saturate(5) hue-rotate(-5deg) brightness(1.1) contrast(1.1);
    transition: var(--transition);
}

.logo img:hover {
    filter: sepia(1) saturate(6) hue-rotate(-5deg) brightness(1.2) contrast(1.1);
    drop-shadow(0 0 10px var(--accent-gold-glow));
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--accent-gold-glow);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
    box-shadow: 0 0 5px var(--accent-gold-glow);
}

/* ==================== Hero区域 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(255, 165, 0, 0.03) 0%, transparent 40%),
                radial-gradient(ellipse at 20% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 40%);
}

/* AI电路纹理 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* AI装饰元素 */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
}

.ai-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-gold-dark);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
    box-shadow: 0 0 5px var(--accent-gold-glow);
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000000;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.1);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-full {
    width: 100%;
    margin-top: 30px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-full:hover::before {
    left: 100%;
}

.btn-full:active {
    transform: translateY(2px);
}

/* ==================== 通用板块样式 ==================== */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gradient-primary);
    box-shadow: 0 0 5px var(--accent-gold-glow);
}

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

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

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== 服务板块 ==================== */
.services {
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* AI芯片装饰 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::after {
    opacity: 1;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2),
                inset 0 0 30px rgba(255, 215, 0, 0.02);
    border-color: var(--accent-gold);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-icon::after {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 5px var(--accent-gold-glow));
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.service-link {
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--accent-gold-light);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

/* ==================== 优势板块 ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.advantage-item {
    padding: 30px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    box-shadow: 0 0 5px var(--accent-gold-glow);
}

.advantage-item:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.advantage-item:hover::before {
    height: 100%;
}

.advantage-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.advantage-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 统计数据 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.stats-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--accent-gold-dark), transparent);
    opacity: 0.3;
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

/* ==================== 联系我们 ==================== */
.contact {
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 3px var(--accent-gold-glow));
}

.info-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 表单 */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.contact-form::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    animation: form-pulse 4s ease-in-out infinite;
}

@keyframes form-pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-gold-light);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3),
                inset 0 0 20px rgba(255, 215, 0, 0.05);
    transform: translateY(-2px);
}

.form-group input:focus + .input-icon,
.form-group textarea:focus + .input-icon {
    color: var(--accent-gold);
    transform: scale(1.1);
}

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

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-primary);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
}

.footer-brand .logo img {
    height: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 5px var(--accent-gold-glow);
}

.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-gold);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.social-link:hover svg {
    fill: #000000;
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== 动画效果 ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .services-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-social {
        grid-column: span 2;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }
}

@media (max-width: 768px) {
    body::after {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 215, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

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

    .stat-number {
        font-size: 36px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        grid-column: auto;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .service-icon {
        margin: 0 auto 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item::after {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==================== 模态框样式 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-card), #1a1a1a);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: modal-glow 3s ease-in-out infinite;
}

@keyframes modal-glow {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-icon.success {
    background: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.modal-icon.error {
    background: rgba(244, 67, 54, 0.2);
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.5);
}

.modal-icon svg {
    filter: drop-shadow(0 0 10px currentColor);
}

.modal h3 {
    margin: 0 0 15px;
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 表单输入错误样式 */
.input-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

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

/* 表单图标动画 */
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 表单分组美化 */
.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    padding-left: 20px;
}

/* 提交成功动画 */
.success-animation {
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
