/* ============================================
   ICPC - International Computing Power
   Tech Blue-White Theme
   ============================================ */

:root {
    --primary: #0066FF;
    --primary-dark: #0047B3;
    --primary-light: #3D8BFF;
    --primary-glow: rgba(0, 102, 255, 0.15);
    --accent: #00C6FF;
    --accent-dark: #0099CC;
    --white: #FFFFFF;
    --bg-light: #F0F6FF;
    --bg-card: #F8FBFF;
    --text-dark: #0A1628;
    --text-body: #3D4F61;
    --text-light: #7A8B9E;
    --border: #E0EAF5;
    --grad-primary: linear-gradient(135deg, #0066FF 0%, #00C6FF 100%);
    --grad-dark: linear-gradient(135deg, #002B5C 0%, #0066FF 100%);
    --grad-hero: linear-gradient(160deg, #0A1A3A 0%, #003D99 50%, #0066FF 100%);
    --shadow-sm: 0 2px 8px rgba(0, 50, 120, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 50, 120, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 50, 120, 0.18);
    --max-width: 1200px;
    --header-height: 70px;
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: var(--text-body); line-height: 1.7; background: var(--white); overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.site-header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); z-index: 1000; transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    max-width: var(--max-width); height: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 8px; background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 20px; letter-spacing: -1px;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .cn { font-size: 14px; font-weight: 700; color: var(--text-dark); letter-spacing: 0.5px; }
.logo-text .en { font-size: 9px; color: var(--text-light); letter-spacing: 0.3px; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-menu a { color: var(--text-body); font-size: 15px; font-weight: 500; position: relative; padding: 8px 0; }
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--grad-primary); transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta {
    background: var(--grad-primary); color: white !important;
    padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: var(--transition);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }

.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    background: var(--grad-hero); overflow: hidden; padding-top: var(--header-height);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 198, 255, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
}
.hero::after {
    content: ''; 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;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.hero-content { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; width: 100%; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent); padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 56px; font-weight: 800; color: white; line-height: 1.15; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 .highlight { background: linear-gradient(90deg, #00C6FF, #00E0FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero h1 .en-name { display: block; font-size: 24px; font-weight: 500; color: rgba(255, 255, 255, 0.7); margin-top: 12px; letter-spacing: 2px; }
.hero-desc { font-size: 19px; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin-bottom: 40px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; }
.btn-primary { background: white; color: var(--primary) !important; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3); }
.btn-outline { background: transparent; color: white !important; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.8); }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hero-stat .num { font-size: 36px; font-weight: 800; color: white; line-height: 1; }
.hero-stat .label { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-top: 6px; }

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-light); }
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; color: var(--primary); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.section-head h2 { font-size: 40px; font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-head p { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; transition: var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 24px; transition: var(--transition); }
.feature-card:hover .feature-icon { background: var(--grad-primary); }
.feature-card h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: var(--text-light); line-height: 1.8; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-size: 36px; font-weight: 800; color: var(--text-dark); margin-bottom: 24px; line-height: 1.3; }
.about-text p { font-size: 16px; color: var(--text-body); margin-bottom: 18px; line-height: 1.9; }
.about-list { list-style: none; margin-top: 28px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--text-body); }
.about-list li::before { content: '\2713'; width: 22px; height: 22px; background: var(--grad-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.about-card { background: var(--grad-dark); border-radius: 16px; padding: 40px; color: white; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.about-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, transparent 60%); }
.about-card-label { font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; position: relative; }
.about-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 8px; position: relative; }
.about-card .en-name-card { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-bottom: 28px; position: relative; }
.about-card-info { display: flex; flex-direction: column; gap: 16px; position: relative; }
.about-card-info .info-row { display: flex; gap: 12px; font-size: 14px; }
.about-card-info .info-label { color: rgba(255, 255, 255, 0.5); min-width: 80px; }
.about-card-info .info-value { color: rgba(255, 255, 255, 0.95); }

.stats-bar { background: var(--grad-dark); padding: 60px 0; position: relative; overflow: hidden; }
.stats-bar::before { content: ''; 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: 40px 40px; }
.stats-grid { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 44px; font-weight: 800; color: white; line-height: 1; margin-bottom: 10px; }
.stat-item .stat-num .suffix { font-size: 24px; color: var(--accent); }
.stat-item .stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

.cta-section { padding: 80px 0; background: var(--bg-light); }
.cta-box { max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }
.cta-box h2 { font-size: 36px; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.cta-box p { font-size: 17px; color: var(--text-light); margin-bottom: 32px; }
.cta-box .btn-primary { background: var(--grad-primary); color: white !important; padding: 16px 40px; font-size: 16px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 20px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.contact-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.contact-item .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-item .info h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.contact-item .info p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form-wrap h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dark); font-family: inherit; transition: var(--transition); background: var(--bg-card); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px var(--primary-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; background: var(--grad-primary); color: white; padding: 14px; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-glow); }

.site-footer { background: #0A1A3A; color: rgba(255, 255, 255, 0.7); padding: 64px 0 0; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text .cn { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; color: rgba(255, 255, 255, 0.4); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }

.page-hero { background: var(--grad-dark); padding: calc(var(--header-height) + 80px) 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; 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; }
.page-hero-content { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.page-hero h1 { font-size: 42px; font-weight: 800; color: white; margin-bottom: 14px; }
.page-hero .breadcrumb { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.page-hero p { font-size: 17px; color: rgba(255, 255, 255, 0.75); margin-top: 16px; max-width: 600px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 80px; align-items: center; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-text h3 { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.service-detail-text p { font-size: 16px; color: var(--text-body); line-height: 1.9; margin-bottom: 20px; }
.service-detail-text ul { list-style: none; }
.service-detail-text ul li { padding-left: 24px; position: relative; margin-bottom: 10px; font-size: 15px; color: var(--text-body); }
.service-detail-text ul li::before { content: '\25B8'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.service-detail-visual { background: var(--grad-dark); border-radius: 16px; padding: 48px; min-height: 280px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.service-detail-visual .big-icon { font-size: 80px; opacity: 0.9; }


/* ============================================
   Slogan Section
   ============================================ */
.slogan-section {
    padding: 100px 0;
    background: var(--grad-dark);
    position: relative;
    overflow: hidden;
}

.slogan-section::before {
    content: '';
    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;
}

.slogan-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.slogan-item {
    text-align: center;
    margin-bottom: 72px;
}

.slogan-item:last-child {
    margin-bottom: 0;
}

.slogan-item .slogan-text {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1.5;
    letter-spacing: 2px;
}

.slogan-item .slogan-text .accent {
    background: linear-gradient(90deg, #00C6FF, #00E0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slogan-item .slogan-en {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    letter-spacing: 1px;
}

.slogan-divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto;
    opacity: 0.5;
}


@media (max-width: 968px) {
    .nav-menu { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; background: white; flex-direction: column; padding: 24px; gap: 8px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 38px; }
    .hero h1 .en-name { font-size: 18px; }
    .about-grid, .contact-grid, .service-detail { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 30px; }
    .slogan-item .slogan-text { font-size: 22px; }
    .slogan-item .slogan-en { font-size: 14px; }

    .section { padding: 64px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-buttons { flex-direction: column; }
    .btn { text-align: center; justify-content: center; }
}

/* ============================================

/* ============================================
   Language Switcher (Dropdown)
   ============================================ */
.lang-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.lang-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.lang-btn .arrow {
    font-size: 9px;
    transition: transform 0.3s;
}

.lang-dropdown.open .lang-btn .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1001;
}

.lang-dropdown.open .lang-menu {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.lang-menu a:last-child {
    border-bottom: none;
}

.lang-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-menu a.active {
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 700;
}

.lang-menu a .check {
    margin-left: auto;
    color: var(--primary);
    font-weight: 700;
}

.lang-menu a:not(.active) .check {
    visibility: hidden;
}

@media (max-width: 968px) {
    .lang-dropdown {
        order: -1;
        margin: 0 auto 16px;
    }
}