/* 科技感与极简暗黑风 UI 变量 */
:root {
    --primary-color: #00e5ff; /* 霓虹青色，代表科技 */
    --primary-dark: #00b3cc;
    --bg-main: #0f172a; /* 深邃夜空蓝/暗灰背景 */
    --bg-secondary: #1e293b; /* 次级暗色卡片背景 */
    --bg-tertiary: #334155;
    --text-main: #f8fafc; /* 主文本白色 */
    --text-muted: #94a3b8; /* 次要文本灰蓝色 */
    --accent-color: #f43f5e; /* 强调色，玫红 */
    --border-color: #334155;
    --transition-speed: 0.4s;
    --font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--text-main); line-height: 1.7; background-color: var(--bg-main); -webkit-font-smoothing: antialiased; letter-spacing: 0.5px; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color var(--transition-speed), text-shadow var(--transition-speed); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px;}

/* 布局辅助 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 20px; text-align: center; background: linear-gradient(90deg, #fff, var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent); border-radius: 2px;}
.section-subtitle { color: var(--text-muted); font-size: 18px; margin-bottom: 60px; text-align: center; font-weight: 300;}

/* 头部 Header (玻璃拟态效果) */
.header { background-color: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); position: sticky; top: 0; z-index: 1000; transition: all 0.3s ease;}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo a { font-size: 26px; font-weight: 800; color: var(--text-main); letter-spacing: 2px; text-transform: uppercase; display:flex; align-items: center; gap: 10px;}
.logo a::before { content: '✨'; font-size: 20px; color: var(--primary-color); }
.nav-menu { display: flex; gap: 40px; }
.nav-menu li a { font-size: 15px; font-weight: 500; padding: 10px 0; position: relative; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary-color); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.nav-menu li a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed); box-shadow: 0 0 10px var(--primary-color);}
.nav-menu li a:hover::after, .nav-menu li a.active::after { width: 100%; }
.mobile-toggle { display: none; font-size: 28px; cursor: pointer; background: none; border: none; color: var(--text-main); }

/* 轮播图 Hero Section (极简科技风) */
.hero { height: 600px; background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); color: var(--text-main); display: flex; align-items: center; text-align: center; position: relative; overflow: hidden;}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.5; animation: gridMove 20s linear infinite;}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 30px 30px; } }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 56px; margin-bottom: 24px; font-weight: 800; animation: fadeInDown 1s ease; letter-spacing: 2px;}
.hero h1 span { color: var(--primary-color); text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);}
.hero p { font-size: 22px; margin-bottom: 50px; color: var(--text-muted); font-weight: 300; animation: fadeInUp 1s ease 0.3s forwards; opacity: 0; max-width: 800px; margin-left: auto; margin-right: auto;}
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 36px; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all var(--transition-speed); border: none; letter-spacing: 1px; text-transform: uppercase;}
.btn-primary { background-color: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }
.btn-primary:hover { background-color: #fff; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2); }
.btn-outline-white { background-color: transparent; color: var(--text-main); border: 1px solid rgba(255,255,255,0.3); animation: fadeInUp 1s ease 0.6s forwards; opacity: 0; margin-left: 20px;}
.btn-outline-white:hover { border-color: var(--primary-color); color: var(--primary-color); box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1); transform: translateY(-3px);}

/* 业务范围 Services (发光卡片) */
.services { background-color: var(--bg-main); position: relative;}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-card { background: var(--bg-secondary); padding: 50px 40px; border-radius: 16px; border: 1px solid var(--border-color); transition: all var(--transition-speed); text-align: left; position: relative; overflow: hidden;}
.service-card::before { content:''; position: absolute; top:0; left:0; width:100%; height:4px; background: linear-gradient(90deg, transparent, var(--primary-color)); transform: translateX(-100%); transition: transform 0.6s ease;}
.service-card:hover { transform: translateY(-10px); border-color: rgba(0, 229, 255, 0.3); box-shadow: var(--shadow-glow); background: #233044;}
.service-card:hover::before { transform: translateX(0); }
.service-icon { width: 70px; height: 70px; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; background: rgba(0, 229, 255, 0.1); border-radius: 12px; color: var(--primary-color); font-size: 32px; border: 1px solid rgba(0, 229, 255, 0.2); transition: all 0.3s;}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); background: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);}
.service-card h3 { font-size: 22px; margin-bottom: 20px; font-weight: 600; color: var(--text-main);}
.service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.8;}

/* 关于我们 About */
.about-content { display: flex; gap: 80px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-size: 36px; margin-bottom: 24px; color: var(--text-main); font-weight: 700;}
.about-text h2 span { color: var(--primary-color); }
.about-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 16px; line-height: 1.8; text-align: justify; }
.about-image { flex: 1; border-radius: 16px; overflow: hidden; min-height: 450px; background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(0, 229, 255, 0.1)), url('../images/about.svg') center/cover; position: relative; border: 1px solid var(--border-color);}
.about-image::after { content:''; position:absolute; inset: 20px; border: 1px dashed rgba(0, 229, 255, 0.3); border-radius: 8px; pointer-events: none;}
.tag-container { margin-top: 30px; display: inline-flex; align-items: center; padding: 10px 24px; background-color: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.3); border-radius: 30px; color: var(--primary-color); font-size: 14px; font-weight: 600; letter-spacing: 1px;}
.tag-container::before { content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--primary-color); margin-right:10px; box-shadow: 0 0 8px var(--primary-color); animation: pulse 2s infinite;}

@keyframes pulse { 0% { transform: scale(0.95); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.5; } 100% { transform: scale(0.95); opacity: 1; } }

/* 新闻列表 News */
.news-item { background: var(--bg-secondary); padding: 40px; border-radius: 16px; margin-bottom: 25px; border: 1px solid var(--border-color); transition: all 0.3s;}
.news-item:hover { transform: translateX(10px); border-color: rgba(0, 229, 255, 0.3); box-shadow: var(--shadow-glow);}
.news-date { display: inline-block; padding: 6px 14px; background: rgba(0, 229, 255, 0.1); color: var(--primary-color); border-radius: 20px; font-weight: 600; margin-bottom: 15px; font-size: 13px; letter-spacing: 1px;}
.news-title { font-size: 24px; margin-bottom: 15px; color: var(--text-main);}
.news-desc { color: var(--text-muted); line-height: 1.8;}

/* FAQ 常见问题 (极简线框) */
.faq { background-color: var(--bg-secondary); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: transparent; margin-bottom: 20px; border-radius: 0; border-bottom: 1px solid var(--border-color);}
.faq-question { padding: 25px 0; font-weight: 600; font-size: 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); transition: color var(--transition-speed); }
.faq-question:hover { color: var(--primary-color); }
.faq-question::after { content: '+'; font-size: 24px; color: var(--text-muted); transition: transform 0.4s ease, color 0.4s ease; font-weight: 300;}
.faq-item.active .faq-question { color: var(--primary-color); border-color: transparent;}
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--primary-color);}
.faq-answer { padding: 0 0 25px 0; max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.5s ease; color: var(--text-muted); font-size: 15px; opacity: 0; line-height: 1.8;}
.faq-item.active .faq-answer { max-height: 500px; opacity: 1; }

/* 联系我们与表单 (赛博朋克表单) */
.contact-wrap { display: flex; gap: 60px; }
.contact-info { flex: 1; background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)); padding: 50px; border-radius: 16px; border: 1px solid var(--border-color); position: relative; overflow: hidden;}
.contact-info::after { content:''; position:absolute; top:-50%; right:-50%; width:200px; height:200px; background:var(--primary-color); filter:blur(100px); opacity:0.1;}
.contact-info h3 { font-size: 28px; margin-bottom: 40px; font-weight: 700; color: var(--text-main);}
.info-item { margin-bottom: 30px; display: flex; align-items: flex-start; gap: 20px;}
.info-icon { font-size: 24px; color: var(--primary-color); background: rgba(0, 229, 255, 0.1); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;}
.info-item h4 { font-size: 14px; margin-bottom: 5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;}
.info-item p { font-size: 16px; color: var(--text-main); font-weight: 500;}

.contact-form { flex: 1.5; padding: 50px; background: var(--bg-secondary); border-radius: 16px; border: 1px solid var(--border-color);}
.form-group { margin-bottom: 25px; position: relative; }
.form-control { width: 100%; padding: 16px 20px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 8px; font-size: 15px; font-family: var(--font-family); color: var(--text-main); transition: all var(--transition-speed); }
.form-control::placeholder { color: #475569; }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1); background: #152033;}
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
textarea.form-control { resize: vertical; min-height: 150px; }
.error-msg { color: var(--accent-color); font-size: 13px; margin-top: 8px; display: none; display: flex; align-items: center; gap: 5px;}
.error-msg::before { content: '!'; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: var(--accent-color); color: #fff; border-radius: 50%; font-size: 10px; font-weight: bold;}
.form-group.has-error .form-control { border-color: var(--accent-color); background: rgba(244, 63, 94, 0.05);}
.form-group.has-error .error-msg { display: flex; }
.form-success { color: var(--primary-color); display: none; margin-top: 20px; padding: 15px; background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.3); border-radius: 8px; text-align: center; font-weight: 500;}

/* 页脚 Footer */
.footer { background-color: #0b1120; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05);}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col h4 { color: var(--text-main); font-size: 18px; margin-bottom: 25px; font-weight: 700; letter-spacing: 1px;}
.footer-col p { color: var(--text-muted); line-height: 1.8;}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-muted); font-size: 15px;}
.footer-col ul li a:hover { color: var(--primary-color); padding-left: 5px;}
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); font-size: 14px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center;}
.footer-bottom a:hover { color: var(--text-main); }

/* 动画 */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); filter: blur(10px);} to { opacity: 1; transform: translateY(0); filter: blur(0);} }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); filter: blur(10px);} to { opacity: 1; transform: translateY(0); filter: blur(0);} }

/* 响应式设计 */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content, .contact-wrap { flex-direction: column; gap: 40px;}
    .contact-form { width: 100%;}
}
@media (max-width: 768px) {
    .header-inner { position: relative; height: 70px;}
    .logo a { font-size: 20px;}
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: -20px; width: calc(100% + 40px); background-color: rgba(15,23,42,0.95); backdrop-filter: blur(10px); padding: 30px; gap: 20px; text-align: center; border-bottom: 1px solid var(--border-color);}
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero { height: auto; padding: 120px 0 80px;}
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .btn { display: block; width: 100%; margin: 0 0 15px 0;}
    .btn-outline-white { margin-left: 0; }
    .service-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center;}
}