/* ========== Common Styles for Cloud Services Site ========== */
/* This file is shared across all pages */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(160deg, #f8fafc 0%, #eef2ff 30%, #e0f2fe 60%, #f8fafc 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-glow: 0 8px 32px rgba(99,102,241,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 40px;
    display: flex; align-items: center; justify-content: space-between;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    padding: 10px 40px;
}
.nav-logo {
    font-size: 1.4rem; font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.nav-logo span { font-weight: 400; -webkit-text-fill-color: #64748b; margin-left: 4px; font-size: 0.85rem; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: #475569;
    transition: var(--transition); position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gradient-1); transition: var(--transition); border-radius: 1px;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 8px 24px !important; border-radius: 50px !important;
    background: var(--gradient-1) !important; color: white !important;
    font-weight: 600 !important; font-size: 0.85rem !important;
    box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }

.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; position: relative;
}
.mobile-toggle span {
    display: block; width: 22px; height: 2px; background: #334155;
    position: absolute; left: 5px; transition: var(--transition);
}
.mobile-toggle span:nth-child(1) { top: 9px; }
.mobile-toggle span:nth-child(2) { top: 15px; }
.mobile-toggle span:nth-child(3) { top: 21px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

/* ===== Common Section ===== */
.section { padding: 100px 40px; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-label {
    display: inline-block; font-size: 0.8rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
    line-height: 1.25; margin-bottom: 20px; letter-spacing: -0.5px;
    color: #0f172a;
}
.section-desc { font-size: 1.05rem; color: #64748b; line-height: 1.8; font-weight: 400; }

/* ===== Buttons ===== */
.btn {
    padding: 14px 36px; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
}
.btn-primary {
    background: var(--gradient-1); color: white;
    box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
.btn-outline {
    background: white; color: #334155;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #eef2ff; }

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-1); color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
    transition: var(--transition);
    opacity: 0; visibility: hidden; z-index: 999;
    font-size: 1.2rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(99,102,241,0.35); }

/* ===== Footer ===== */
.footer {
    padding: 40px; text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #f1f5f9;
}
.footer-text { font-size: 0.82rem; color: #64748b; }
.footer-text a { color: var(--primary); }

/* ===== Detail Page Styles ===== */
.detail-hero {
    min-height: 50vh; display: flex; align-items: center;
    padding: 140px 40px 80px; position: relative; overflow: hidden;
    background: var(--gradient-hero);
}
.detail-hero-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.detail-hero-orb {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    filter: blur(100px); opacity: 0.08; top: -150px; right: -100px;
    background: #c7d2fe;
    animation: floatOrb 20s ease-in-out infinite;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.detail-hero-content { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.detail-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: #94a3b8; margin-bottom: 24px;
}
.detail-breadcrumb a { color: #64748b; transition: var(--transition); }
.detail-breadcrumb a:hover { color: var(--primary); }
.detail-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
    line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px;
    color: #0f172a;
}
.detail-hero-subtitle {
    font-size: 1.1rem; color: #475569; max-width: 600px;
    line-height: 1.8; font-weight: 400; margin-bottom: 32px;
}
.detail-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
}
.product-card {
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: var(--radius); padding: 32px 28px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.2);
    box-shadow: var(--shadow-glow);
}
.product-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 16px;
    background: #eef2ff;
}
.product-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.product-card-desc { font-size: 0.88rem; color: #475569; line-height: 1.7; margin-bottom: 16px; }
.product-card-features { display: flex; flex-wrap: wrap; gap: 6px; }
.product-feature-tag {
    padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 500;
    background: #f1f5f9; color: #475569;
    border: 1px solid #e2e8f0;
}

/* Pricing table */
.pricing-table-wrap { max-width: 1100px; margin: 0 auto; overflow-x: auto; }
.pricing-table {
    width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.pricing-table th {
    background: #f8fafc; color: #0f172a;
    padding: 16px 20px; text-align: left; font-weight: 700;
    border-bottom: 2px solid var(--primary);
    position: sticky; top: 0;
}
.pricing-table td {
    padding: 14px 20px; border-bottom: 1px solid #e2e8f0;
    color: #475569;
}
.pricing-table tr:hover td { background: #f8fafc; }
.pricing-highlight {
    color: var(--primary); font-weight: 600;
}

/* Scenario cards */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
}
.scenario-card {
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: var(--radius); padding: 32px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.scenario-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14,165,233,0.2);
    box-shadow: 0 8px 28px rgba(14,165,233,0.1);
}
.scenario-card-emoji { font-size: 2rem; margin-bottom: 16px; }
.scenario-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.scenario-card-desc { font-size: 0.85rem; color: #475569; line-height: 1.7; }

/* Advantage list */
.advantage-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.advantage-item {
    display: flex; gap: 20px; align-items: flex-start;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: var(--radius); padding: 28px 32px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.advantage-item:hover {
    border-color: rgba(99,102,241,0.2);
    box-shadow: var(--shadow-glow);
}
.advantage-num {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
    background: var(--gradient-1); color: white;
}
.advantage-content { flex: 1; }
.advantage-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.advantage-desc { font-size: 0.88rem; color: #475569; line-height: 1.7; }

/* CTA section */
.detail-cta {
    padding: 80px 40px; text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 50%, #e0f2fe 100%);
    position: relative;
}
.detail-cta-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; color: #0f172a; }
.detail-cta-desc { font-size: 1rem; color: #475569; margin-bottom: 32px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .navbar { padding: 12px 20px; }
    .navbar.scrolled { padding: 8px 20px; }
    .nav-links {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.98); flex-direction: column;
        justify-content: center; align-items: center; gap: 24px; z-index: 998;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; min-height: 44px; display: flex; align-items: center; color: #334155; }
    .mobile-toggle { display: block; z-index: 999; width: 44px; height: 44px; }
    .mobile-toggle span { left: 11px; }
    .section { padding: 60px 20px; }
    .detail-hero { padding: 120px 20px 60px; min-height: 40vh; }
    .detail-cta { padding: 60px 20px; }
    .section-header { margin-bottom: 40px; }
    .footer { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .product-grid, .scenario-grid { grid-template-columns: 1fr; }
    .advantage-item { flex-direction: column; }
    .detail-hero-actions { flex-direction: column; }
    .detail-hero-actions .btn { width: 100%; justify-content: center; }
    .pricing-table { font-size: 0.8rem; }
    .pricing-table th, .pricing-table td { padding: 10px 12px; }
    .detail-cta { padding: 40px 16px; }
    .detail-cta-title { font-size: 1.4rem; }
    .detail-hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
    .detail-breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }
}
