/* ============================================
   CMS网站 - 完整样式表
   参考：即刻开锁风格（深蓝+金色）
   ============================================ */

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { text-decoration: none; color: inherit; transition: color .3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- 导航栏 --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: #1e3a8a; color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

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

.logo {
    font-size: 1.4rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px;
}
.logo i { color: #fbbf24; }

.nav-links {
    list-style: none; display: flex; gap: 4px;
}
.nav-links a {
    color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 5px;
    font-size: .95rem; font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff; background: rgba(255,255,255,.15);
}

.mobile-toggle {
    display: none; background: none; border: none;
    color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* --- Banner 轮播 --- */
.hero-slider {
    position: relative; width: 100%; height: 600px;
    margin-top: 64px; overflow: hidden;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity .8s ease;
    display: flex; align-items: center; justify-content: center;
    background-color: #1e3a8a;
}
.slide.active { opacity: 1; position: relative; }

.slide-content {
    text-align: center; color: #fff; max-width: 800px; padding: 0 30px;
    animation: fadeInUp .8s ease both;
}
.slide-content h1 {
    font-size: 3rem; margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
    display: inline-block; padding: 14px 36px;
    background: #fbbf24; color: #1e3a8a;
    border-radius: 6px; font-weight: 700; font-size: 1rem;
    transition: all .3s; cursor: pointer; border: none;
}
.btn-primary:hover {
    background: #f59e0b; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251,191,36,.4);
}

/* 轮播按钮 */
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.25); color: #fff;
    border: none; width: 48px; height: 48px;
    font-size: 1.4rem; border-radius: 50%;
    cursor: pointer; transition: background .3s;
    z-index: 5;
}
.slider-btn:hover { background: rgba(255,255,255,.45); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 10px; z-index: 5;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s;
}
.dot.active { background: #fbbf24; width: 32px; border-radius: 6px; }

/* --- 快捷入口 --- */
.quick-links {
    background: #f9fafb; padding: 16px 0; border-bottom: 1px solid #eee;
}
.quick-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.quick-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 8px;
    background: #fff; color: #333; font-weight: 600; font-size: .95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: all .3s;
}
.quick-item i { color: #1e3a8a; font-size: 1.1rem; }
.quick-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); color: #1e3a8a; }

/* --- 服务项目 --- */
.services { padding: 80px 0; background: #fff; }

.section-title {
    font-size: 2.2rem; font-weight: 700; color: #1e3a8a;
    text-align: center; margin-bottom: 8px;
}
.section-subtitle {
    text-align: center; color: #666; margin-bottom: 48px;
    font-size: 1.05rem;
}

.services-grid {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}

.service-card {
    background: #fff; padding: 36px 24px; border-radius: 12px;
    text-align: center; border: 1px solid #f0f0f0;
    transition: all .35s; position: relative;
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    transform: scaleX(0); transition: transform .35s;
}
.service-card:hover {
    transform: translateY(-8px); box-shadow: 0 12px 30px rgba(30,58,138,.12);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all .35s;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.service-icon i { font-size: 1.7rem; color: #1e3a8a; transition: all .35s; }
.service-card:hover .service-icon i { color: #fff; }

.service-card h3 { font-size: 1.15rem; color: #1e293b; margin-bottom: 10px; }
.service-card p { color: #64748b; font-size: .92rem; line-height: 1.6; }

/* --- 为什么选择我们 --- */
.why-choose {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
}
.features-grid {
    max-width: 1000px; margin: 40px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-item { text-align: center; padding: 20px 10px; }
.feature-item i { font-size: 2.4rem; color: #fbbf24; margin-bottom: 16px; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-item p { color: rgba(255,255,255,.75); font-size: .88rem; }

/* --- 关于我们 --- */
.about { padding: 80px 0; background: #f9fafb; }
.about-flex {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-image img { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.about-text h2 { font-size: 2rem; color: #1e3a8a; margin-bottom: 20px; }
.about-text p { color: #555; line-height: 1.8; font-size: 1rem; }

/* --- 新闻动态 --- */
.news { padding: 80px 0; background: #fff; }
.news-grid {
    max-width: 1100px; margin: 30px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.news-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    border: 1px solid #f0f0f0; transition: all .3s;
    padding: 24px;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 22px rgba(0,0,0,.08); border-color: transparent; }
.news-date {
    display: inline-block; background: #eff6ff; color: #1e3a8a;
    padding: 4px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600;
    margin-bottom: 14px;
}
.news-card h3 { font-size: 1.08rem; color: #1e293b; margin-bottom: 10px; line-height: 1.4; }
.news-card p { color: #94a3b8; font-size: .9rem; line-height: 1.6; margin-bottom: 14px; }
.news-card a { color: #1e3a8a; font-weight: 600; font-size: .9rem; }
.news-card a:hover { color: #2563eb; }

/* --- 联系我们 --- */
.contact { padding: 80px 0; background: #f9fafb; }
.contact-flex {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info h2 { font-size: 2rem; color: #1e3a8a; margin-bottom: 32px; }
.info-item {
    display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.info-item > i {
    width: 44px; height: 44px; min-width: 44px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.info-item h4 { font-size: .95rem; color: #64748b; margin-bottom: 4px; }
.info-item p { color: #1e293b; font-weight: 600; }

.contact-form {
    background: #fff; padding: 36px; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.contact-form h3 { font-size: 1.3rem; color: #1e3a8a; margin-bottom: 20px; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; padding: 13px 16px; border: 1px solid #e2e8f0;
    border-radius: 8px; margin-bottom: 14px; font-size: .95rem;
    outline: none; transition: border-color .3s;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.contact-form textarea { resize: vertical; min-height: 90px; }

/* --- 页脚 --- */
.footer {
    background: #111827; color: #9ca3af; padding: 56px 0 0;
}
.footer-grid {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-section h3 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.footer-section h4 { color: #d1d5db; font-size: .95rem; margin-bottom: 12px; }
.footer-section p { font-size: .9rem; line-height: 1.7; margin-bottom: 8px; }
.footer-section a { color: #9ca3af; font-size: .9rem; transition: color .3s; display: inline-block; margin-bottom: 6px; }
.footer-section a:hover { color: #fbbf24; }

.footer-bottom {
    text-align: center; padding: 20px 0; margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom p { font-size: .85rem; }

/* --- 回到顶部 --- */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    background: #1e3a8a; color: #fff;
    border: none; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: all .3s; z-index: 999; box-shadow: 0 4px 12px rgba(30,58,138,.3);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: #fbbf24; color: #1e3a8a; transform: translateY(-3px); }

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

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #1e3a8a; flex-direction: column; padding: 12px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,.2);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px; }

    .hero-slider { height: 420px; }
    .slide-content h1 { font-size: 1.8rem; }

    .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .about-flex, .contact-flex { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.7rem; }
    .slider-btn { width: 38px; height: 38px; font-size: 1.1rem; }
}

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