/* =========================================
   海南星程智造科技有限公司 - 官网样式
   Theme: Dark Tech / 深色科技风
   ========================================= */

:root {
    /* Colors */
    --bg-deep: #050816;
    --bg-primary: #0a0e27;
    --bg-secondary: #131841;
    --bg-card: rgba(19, 24, 65, 0.6);
    
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-2: #06b6d4;
    
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    /* Sizes */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ========== Layout ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-head {
    margin-bottom: 80px;
}

.section-num {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(5, 8, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(5, 8, 22, 0.85);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-zh { font-weight: 600; font-size: 15px; }
.logo-en { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-menu {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

.nav-menu a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.nav-cta {
    padding: 10px 20px;
    background: var(--gradient-1);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #fff !important;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        var(--bg-deep);
    z-index: -2;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 32px;
    animation: fadeUp 1s var(--ease) both;
}

.hero-title {
    font-size: clamp(48px, 9vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 32px;
    animation: fadeUp 1s 0.2s var(--ease) both;
}

.hero-title .line-1,
.hero-title .line-2 {
    display: block;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .line-2 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeUp 1s 0.4s var(--ease) both;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    animation: fadeUp 1s 0.6s var(--ease) both;
}

.tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: #fff;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: fadeUp 1s 0.8s var(--ease) both;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px var(--accent-glow);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-lg { padding: 18px 36px; font-size: 16px; }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeUp 1s 1.2s var(--ease) both;
}

.hero-scroll span {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== About ========== */
.about { background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 100%); }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    z-index: -1;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-num {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.stat-label span {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========== Business ========== */
.business { background: var(--bg-primary); }

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

.b-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all 0.4s var(--ease);
    overflow: hidden;
}

.b-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.b-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
    background: rgba(99, 102, 241, 0.05);
}

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

.b-card-featured {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.b-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--accent-light);
    transition: transform 0.3s var(--ease);
}

.b-icon svg { width: 100%; height: 100%; }

.b-card:hover .b-icon { transform: scale(1.1) rotate(-3deg); }

.b-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.b-en {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.b-list {
    margin-bottom: 80px;
}

.b-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.b-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.b-list li:last-child { border-bottom: none; }

.b-tag {
    position: absolute;
    top: 32px;
    right: 32px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--accent-light);
    letter-spacing: 1px;
}

/* ========== Qualifications ========== */
.qualifications { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%); }

.quals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qual-card {
    padding: 28px 24px;
    background: rgba(19, 24, 65, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.qual-card:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.qual-card-highlight {
    grid-column: span 3;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
}

.qual-num {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.qual-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.qual-card p {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.qual-card-highlight .qual-num { font-size: 20px; margin-bottom: 0; }
.qual-card-highlight h4 { font-size: 22px; margin-bottom: 8px; }

/* ========== Scope ========== */
.scope { background: var(--bg-deep); }

.scope-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.scope-col {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.scope-licensed {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.scope-head {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.scope-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--accent-light);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.scope-head h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.scope-head p {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.scope-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scope-item {
    padding: 14px 0;
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.scope-item:last-child { border-bottom: none; }

.scope-item .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    flex-shrink: 0;
}

.scope-cats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.cat:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.cat h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cat p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== Contact ========== */
.contact {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--bg-deep) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.contact-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s var(--ease);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: rgba(99, 102, 241, 0.05);
}

.c-icon {
    font-size: 32px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-card .muted {
    font-size: 12px;
    color: var(--text-muted);
}

.cta-banner {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h3 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer ========== */
.footer {
    padding: 80px 0 32px;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo-img { width: 48px; height: 48px; }
.footer-name { font-size: 16px; font-weight: 600; }
.footer-en { font-size: 12px; color: var(--text-muted); line-height: 1.6; font-family: 'Courier New', monospace; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.footer-links a, .footer-links p {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-bottom .muted {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    max-width: 600px;
    text-align: right;
}

/* ========== Reveal Animation ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .business-grid { grid-template-columns: 1fr; }
    .scope-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 48px; }
    
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .quals-grid { grid-template-columns: 1fr 1fr; }
    .qual-card-highlight { grid-column: span 2; flex-direction: column; align-items: flex-start; padding: 24px; }
    .qual-card-highlight h4 { font-size: 18px; }
    
    .hero-title { letter-spacing: -1px; }
    .hero-cta, .hero-tags { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { text-align: center; }
    
    .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    
    .scope-col { padding: 28px 20px; }
    .cta-banner { padding: 48px 24px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom .muted { text-align: center; }
}

@media (max-width: 480px) {
    .contact-grid { grid-template-columns: 1fr; }
    .quals-grid { grid-template-columns: 1fr; }
    .qual-card-highlight { grid-column: span 1; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-num { font-size: 36px; }
}

/* Mobile menu open */
.nav.open .nav-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.nav.open .nav-menu li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.nav.open .nav-menu li:last-child { border-bottom: none; }
