/*
 * 网安启元 (websafe0.com) - 营销子页面共享样式
 * 暗色科技风 + 人文温度（信任蓝）
 */

@import '../shared/design-tokens.css';
@import '../shared/dark-base.css?v=3';

/* websafe0 信任蓝调色板 */
:root {
    --c-primary: #3b82f6;
    --c-secondary: #06b6d4;
    --c-accent: #10b981;
    --c-accent-warm: #f59e0b;
    --c-glow: rgba(59, 130, 246, 0.4);
    --bg-page: #0c1220;
    --bg-header: rgba(12, 18, 32, 0.85);
    --bg-footer: rgba(12, 18, 32, 0.5);
    --text-heading: #bfdbfe;
    --mesh-bg:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(16,185,129,0.06) 0%, transparent 50%);
    --grad-text: linear-gradient(135deg, #60a5fa 0%, #34d399 50%, #22d3ee 100%);
    --grad-btn: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    --grad-card-border: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(6,182,212,0.5), rgba(16,185,129,0.5));
    --shadow-glow: 0 0 30px var(--c-glow);
    --shadow-btn: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Hero */
.page-hero {
    color: white;
    text-align: center;
    padding: 4rem 0 3rem;
    background: transparent;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    border-radius: 3px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 40%, #60a5fa 70%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.15;
}

.page-hero p { color: #94a3b8; font-size: 1.05rem; max-width: 640px; margin: 0 auto; line-height: 1.7; }

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8rem; }
}

/* 毛玻璃内容块 */
.service-item, .info-item, .terms-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-item::before, .info-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-card-border);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-item:hover, .info-item:hover {
    border-color: rgba(59,130,246,0.3);
    box-shadow: var(--shadow-glow);
    background: rgba(255,255,255,0.1);
}

.service-item:hover::before, .info-item:hover::before { opacity: 1; }

.service-item h2, .info-item h2, .info-item h3, .terms-section h2 {
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.service-item p, .info-item p, .terms-section p {
    color: #b0c4d3;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.service-item ul, .terms-section ul {
    padding-left: 1.2rem;
    color: #b0c4d3;
}

.service-item li, .terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.service-item li::marker { color: var(--c-primary); }
.terms-section li::marker { color: var(--c-accent); }

/* 联系区域 */
.contact-content { padding: 3rem 0; }

.contact-info, .contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.contact-info h2, .contact-form h2 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.info-item h3 { font-size: 1.1rem; }

/* 表单 */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #93c5fd;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(12, 18, 32, 0.6);
    color: #e2e8f0;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    outline: none;
    background: rgba(12, 18, 32, 0.8);
}

.form-group textarea { resize: vertical; }
.form-group select option { background: #1e293b; color: #e2e8f0; }

/* 响应式 */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero { padding: 2.5rem 0; }
    .contact-content .container > div { margin-bottom: 2rem; }
}

/* ===== 无障碍增强 ===== */
html.a11y-high-contrast .page-hero h1,
html.a11y-high-contrast .contact-info h2,
html.a11y-high-contrast .contact-form h2 {
    -webkit-text-fill-color: #bfdbfe;
    background: none;
    color: #bfdbfe;
}
html.a11y-high-contrast .service-item,
html.a11y-high-contrast .info-item,
html.a11y-high-contrast .terms-section,
html.a11y-high-contrast .contact-info,
html.a11y-high-contrast .contact-form {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}
