/* ============================================
   NetDrive 中文官網 - 公共樣式
   主題色: #161617 (深黑), #3D99D0 (藍), #75BD4D (綠)
   ============================================ */

/* CSS 變數 */
:root {
    --color-bg-primary: #161617;
    --color-bg-secondary: #1c1c1e;
    --color-bg-tertiary: #2c2c2e;
    --color-bg-card: #1e1e20;
    --color-blue: #3D99D0;
    --color-blue-light: #5aadde;
    --color-blue-dark: #2d7db0;
    --color-green: #75BD4D;
    --color-green-light: #8ed065;
    --color-green-dark: #5fa03a;
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-text-muted: #6e6e73;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* 重置樣式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-blue-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 按鈕 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    font-family: var(--font-family);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(117, 189, 77, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-green-light), var(--color-green));
    box-shadow: 0 6px 24px rgba(117, 189, 77, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 章節通用 */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(61, 153, 208, 0.1);
    border-radius: 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 分割線裝飾 */
.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
    border-radius: 2px;
    margin: 0 auto 24px;
}

/* 發光效果 */
.glow-blue {
    position: relative;
}

.glow-blue::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(61, 153, 208, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-green {
    position: relative;
}

.glow-green::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(117, 189, 77, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 卡片 */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* 滾動動畫 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 捲軸樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* 響應式斷點 */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 22px;
    }
}
