/**
 * CloudSpect - Professional White & Navy Blue Theme
 * 白底海军蓝专业主题
 * 
 * 完整、专业、现代的设计系统
 */

/* ============================================
   全局样式重置
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b; /* 深灰蓝正文 */
    background-color: #ffffff; /* 纯白背景 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   导航栏 - 白底蓝标
   ============================================ */

header {
    background: #ffffff !important;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #0f172a !important; /* 海军蓝边框 */
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

header + * {
    margin-top: 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.nex-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a !important; /* 海军蓝 */
    text-decoration: none;
    text-shadow: none !important;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #1e293b !important;
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #475569 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #0f172a !important;
    background-color: #f1f5f9;
}

/* 下拉菜单 - 白底卡片 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1) !important;
    z-index: 1000;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #475569 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
}

/* ============================================
   Hero Section - 保持深色背景（设计要求）
   ============================================ */

.gradient-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #1A2B4C 0%, #0f172a 50%, #1e293b 100%) !important;
    position: relative;
    overflow: hidden;
}

.gradient-hero h1,
.gradient-hero h2,
.gradient-hero h3 {
    color: white !important;
}

.gradient-hero p {
    color: #cbd5e1 !important;
}

.neon-accent {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

/* 普通Hero区域 - 白色背景 */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0f172a; /* 海军蓝标题 */
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   内容区域 - 白色背景
   ============================================ */

.content-section {
    padding: 80px 0;
    background: #ffffff;
}

section {
    padding: 60px 0;
    background: #ffffff;
}

section.bg-slate-800,
section.bg-slate-800\/50 {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* ============================================
   卡片样式 - 白底卡片
   ============================================ */

.cyber-border,
.card-lift {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.cyber-border:hover,
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

/* ============================================
   联系网格
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 60px 0;
}

/* 联系信息卡片 */
.contact-info {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 2.5rem;
    border-left: 4px solid #0f172a; /* 海军蓝装饰条 */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.contact-info h2 {
    color: #0f172a;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: #0f172a; /* 海军蓝图标 */
    font-size: 1.5rem;
    margin-right: 1rem;
    background: #f1f5f9;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    color: #475569;
    text-decoration: none;
}

.contact-details a:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* 营业时间 */
.business-hours {
    background: #f8fafc !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e2e8f0 !important;
}

.business-hours h3 {
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hours-grid {
    display: grid;
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    color: #475569;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.hours-item:last-child {
    border-bottom: none;
}

/* ============================================
   联系表单
   ============================================ */

.contact-form {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.contact-form h2 {
    color: #0f172a;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* 紧急横幅 - 更专业配色 */
.emergency-banner {
    background: linear-gradient(45deg, #dc2626, #ea580c) !important; /* 红-橙渐变 */
    color: white !important;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.emergency-banner h3 {
    color: white !important;
    margin-bottom: 0.5rem;
}

.emergency-banner p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1rem;
}

.emergency-banner .btn {
    background: white !important;
    color: #dc2626 !important;
    font-weight: 600;
}

/* 表单元素 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.inspection-form input,
.inspection-form select,
.inspection-form textarea {
    width: 100%;
    padding: 0.875rem;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    color: #1e293b !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.inspection-form input:focus,
.inspection-form select:focus,
.inspection-form textarea:focus {
    outline: none;
    border-color: #00d4ff !important; /* 科技蓝聚焦 */
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* 单选/复选框样式 */
.radio-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1rem;
}

.radio-group label {
    color: #475569;
    font-weight: normal;
}

.inspection-option {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #475569 !important;
}

.inspection-option:hover {
    border-color: #0f172a;
    background-color: #f8fafc;
}

.inspection-option.selected {
    border-color: #0f172a !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 600;
}

/* ============================================
   按钮样式
   ============================================ */

/* 主按钮 - 海军蓝渐变 */
.btn {
    background: linear-gradient(45deg, #0f172a, #1e293b) !important; /* 海军蓝渐变 */
    color: white !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2);
    color: white !important;
}

/* WhatsApp按钮 */
.whatsapp-chat-btn,
.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E) !important;
    color: white !important;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.whatsapp-chat-btn:hover,
.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    color: white !important;
}

/* 次要按钮 - 青色 */
.btn-secondary {
    background: linear-gradient(45deg, #00d4ff, #06b6d4) !important;
    color: white !important;
}

.btn-secondary:hover {
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.3);
}

/* ============================================
   页脚 - 浅色背景
   ============================================ */

footer {
    background: #f8fafc !important; /* 浅灰背景 */
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 2px solid #00d4ff !important; /* 科技蓝上边框 */
    margin-top: 60px;
}

footer h4,
footer h3 {
    color: #0f172a !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: #475569 !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #475569 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent !important;
    padding: 0 !important;
}

.footer-links a:hover {
    color: #0f172a !important;
    text-decoration: underline;
    background: transparent !important;
}

footer a,
footer a:link,
footer a:visited,
footer a:hover,
footer a:active,
footer a:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #475569 !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: #0f172a !important;
}

footer li a,
footer ul a,
footer nav a {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* ============================================
   表格样式
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

table tr:hover {
    background: #f8fafc;
}

/* ============================================
   文本颜色修正
   ============================================ */

.text-slate-400,
.text-slate-300 {
    color: #64748b !important;
}

.text-cyan-400 {
    color: #00d4ff !important;
}

.nex-title {
    color: #0f172a !important;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .form-row,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ============================================
   覆盖现有深色样式
   ============================================ */

/* 确保内容区域是白色 */
section:not(.gradient-hero):not(.bg-slate-800):not(.bg-slate-800\/50) {
    background: #ffffff !important;
}

/* 确保卡片是白色 */
.card,
.card-lift,
.cyber-border {
    background: #ffffff !important;
    color: #1e293b !important;
}

.card h3,
.card h4 {
    color: #0f172a !important;
}

.card p {
    color: #475569 !important;
}
