/* =========================================================
   ITAsset 企業級資產盤點與維運系統 — 官方網站專用 CSS
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #10b981;
    --accent-hover: #059669;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 頂部 Header 玻璃擬態 */
.header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Hero Section (科技大器主視覺) */
.hero-section {
    background: var(--gradient-hero);
    padding: 140px 2rem 80px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-ctas .btn-primary, .hero-ctas .btn-accent {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.hero-metrics {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
}

.metric-item strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #38bdf8;
}

.metric-item span {
    font-size: 0.85rem;
    color: #64748b;
}

/* 擬真 Hero Mockup 視窗 */
.hero-mockup {
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.mockup-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.mockup-body {
    padding: 1.25rem;
    background: #0f172a;
}

.mock-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mock-card {
    background: #1e293b;
    border-radius: 8px;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-card-title {
    font-size: 0.75rem;
    color: #64748b;
}

.mock-card-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 0.2rem;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.mock-table th {
    text-align: left;
    color: #64748b;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.badge-online {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-dispatch {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* 核心特色區 Section */
.section {
    padding: 90px 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 線上互動試用沙盒 (Interactive Demo Sandbox) */
.demo-section {
    background: #0f172a;
    color: #ffffff;
    padding: 90px 2rem;
}

.demo-box {
    background: #1e293b;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.demo-nav-tabs {
    display: flex;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-tab-btn {
    flex: 1;
    padding: 1.1rem 1.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-bottom: 3px solid transparent;
}

.demo-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.demo-tab-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-bottom-color: #38bdf8;
}

.demo-tab-content {
    padding: 2rem;
    display: none;
}

.demo-tab-content.active {
    display: block;
}

/* Dispatch Demo */
.dispatch-demo-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.app-selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-item-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.app-item-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.app-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-icon {
    font-size: 1.8rem;
}

.app-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.app-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.dispatch-log-window {
    background: #090d16;
    border-radius: 12px;
    padding: 1.25rem;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-line {
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.log-success { color: #34d399; }
.log-warn { color: #fbbf24; }
.log-info { color: #38bdf8; }

/* Progress Bar */
.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Dual Monitor Demo */
.monitor-demo-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.monitor-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
}

.monitor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.monitor-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.monitor-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.monitor-detail-row span:first-child {
    color: #64748b;
}

.monitor-detail-row span:last-child {
    color: #e2e8f0;
    font-weight: 500;
}

/* ROI 計算器 Section */
.roi-section {
    background: #ffffff;
    padding: 90px 2rem;
}

.roi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.slider-container {
    margin: 2rem 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slider-val {
    color: var(--primary);
    font-size: 1.5rem;
}

input[type=range] {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.roi-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.roi-res-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.roi-res-card.highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.roi-res-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roi-res-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* FAQ 區域 */
.faq-section {
    background: #f8fafc;
    padding: 90px 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Footer 頁尾 */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 2rem 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* RWD 響應式調整 */
@media (max-width: 992px) {
    .hero-grid, .dispatch-demo-panel, .roi-card, .faq-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .nav-menu {
        display: none;
    }
}
