:root {
            
            --bg-body-start: #0a0a0f;
            --bg-body-end: #1a1a2e;
            --bg-panel: rgba(20, 24, 40, 0.85);
            --bg-card: #1e2235;
            --bg-overlay: rgba(10, 10, 15, 0.95);

            --border-base: #333b55;
            --glass-base: rgba(255, 255, 255, 0.06);
            --glass-hover: rgba(255, 255, 255, 0.10);

            --primary: #3b82f6;
            --primary-hover: #2563eb;
            --technical-blue: #60a5fa;
            --glow-blue: rgba(59, 130, 246, 0.45);

            --success: #10b981;
            --success-glow: rgba(16, 185, 129, 0.4);
            --warning: #f59e0b;
            --error: #ef4444;

            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --text-muted: #8b9bb4;
            --text-tertiary: #71717a;

            --header-height: 70px;
            --max-width: 900px;
            --radius-card: 16px;
            --radius-sm: 8px;
            --radius-btn: 100px;

            --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-body-start);
            background-image:
                linear-gradient(135deg, var(--bg-body-start), var(--bg-body-end)),
                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: 100% 100%, 40px 40px, 40px 40px;
            background-attachment: fixed;
            color: var(--text-primary);
            font-family: 'Noto Sans TC', sans-serif;
            line-height: 1.6;
            min-height: 100vh;
            padding-top: var(--header-height);
            padding-bottom: 100px;
            
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: color 0.2s;
        }

        a:hover {
            color: var(--technical-blue);
        }

        .icon {
            width: 1.25em;
            height: 1.25em;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            vertical-align: middle;
        }

        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 20px;
        }

        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: var(--bg-panel);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-base);
            z-index: 1000;
            display: flex;
            align-items: center;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .header-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-title .icon {
            color: var(--primary);
            width: 1.5em;
            height: 1.5em;
        }

        .progress-indicator {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.875rem;
            color: var(--technical-blue);
            background: var(--glass-base);
            padding: 4px 12px;
            border-radius: var(--radius-btn);
            border: 1px solid var(--border-base);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .progress-indicator.completed {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border-color: var(--success);
            box-shadow: 0 0 12px var(--success-glow);
        }

        .progress-bar-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: rgba(255, 255, 255, 0.05);
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--technical-blue));
            width: 0%;
            transition: width 0.4s var(--ease-out);
            box-shadow: 0 0 10px var(--glow-blue);
        }

        .progress-bar.completed {
            background: linear-gradient(90deg, var(--success), #34d399);
            box-shadow: 0 0 10px var(--success-glow);
        }

        .intro-card {
            background: var(--bg-card);
            border: 1px solid var(--border-base);
            border-radius: var(--radius-card);
            padding: 24px;
            margin: 24px 0 32px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .intro-card::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--glass-hover), transparent);
            opacity: 0.5;
        }

        .intro-card h1 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .intro-card p {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

        .intro-card p:last-child {
            margin-bottom: 0;
        }

        .controls {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 24px;
        }

        .btn {
            appearance: none;
            background: var(--glass-base);
            border: 1px solid var(--border-base);
            color: var(--text-secondary);
            padding: 10px 20px;
            border-radius: var(--radius-btn);
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s var(--ease-out);
            font-family: inherit;
        }

        .btn:hover {
            background: var(--glass-hover);
            color: var(--text-primary);
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-hover));
            color: white;
            border: none;
            box-shadow: 0 4px 16px var(--glow-blue);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-hover), var(--primary));
            color: white;
        }

        .mobile-actions {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-panel);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top: 1px solid var(--border-base);
            padding: 12px 20px;
            z-index: 950;
            gap: 12px;
        }

        .mobile-actions .btn {
            flex: 1;
            padding: 12px;
            font-size: 0.85rem;
        }

        .checklist-section {
            background: var(--bg-card);
            border: 1px solid var(--border-base);
            border-radius: var(--radius-card);
            margin-bottom: 20px;
            overflow: hidden;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .checklist-section:hover {
            border-color: rgba(59, 130, 246, 0.3);
        }

        .checklist-section.completed {
            border-color: rgba(16, 185, 129, 0.3);
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
        }

        .section-header {
            padding: 20px 24px;
            background: transparent;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            border: none;
            outline: none;
            color: var(--text-primary);
            text-align: left;
            transition: background 0.2s;
        }

        .section-header:hover {
            background: var(--glass-base);
        }

        .section-title {
            font-size: 1.1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-check-icon {
            color: var(--success);
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 1.25em;
        }

        .checklist-section.completed .section-check-icon {
            opacity: 1;
            transform: scale(1);
        }

        .section-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-count {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.2);
            padding: 2px 8px;
            border-radius: 4px;
            transition: all 0.3s;
        }

        .section-count.completed {
            color: var(--success);
            background: rgba(16, 185, 129, 0.1);
        }

        .chevron {
            color: var(--text-muted);
            transition: transform 0.3s var(--ease-out);
        }

        .checklist-section.open .chevron {
            transform: rotate(180deg);
        }

        .section-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s var(--ease-out);
            border-top: 1px solid transparent;
        }

        .checklist-section.open .section-body {
            border-top-color: var(--border-base);
        }

        .check-item {
            padding: 16px 24px;
            border-bottom: 1px solid var(--border-base);
            display: flex;
            gap: 16px;
            cursor: pointer;
            transition: background 0.2s;
            position: relative;
        }

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

        .check-item:hover {
            background: var(--glass-base);
        }

        .check-item.checked {
            background: rgba(0, 0, 0, 0.2);
        }

        .check-item.checked .item-title {
            color: var(--text-muted);
            text-decoration: line-through;
        }

        .check-item.checked .item-desc {
            color: var(--text-tertiary);
        }

        .checkbox-wrapper {
            position: relative;
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .checkbox-wrapper input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            width: 24px;
            height: 24px;
            background: transparent;
            border: 2px solid var(--text-muted);
            border-radius: 6px;
            transition: all 0.2s var(--ease-out);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .checkbox-wrapper input:checked~.checkmark {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 10px var(--glow-blue);
        }

        .checkmark::after {
            content: "";
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg) scale(0);
            transition: transform 0.2s var(--ease-out);
            margin-bottom: 2px;
        }

        .checkbox-wrapper input:checked~.checkmark::after {
            transform: rotate(45deg) scale(1);
        }

        .item-content {
            flex: 1;
        }

        .item-title {
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 4px;
            font-size: 1rem;
            transition: color 0.2s;
        }

        .item-desc {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .item-actions {
            margin-top: 12px;
            display: flex;
            gap: 12px;
        }

        .action-link {
            font-size: 0.8rem;
            color: var(--technical-blue);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border: 1px solid var(--border-base);
            border-radius: 4px;
            transition: all 0.2s;
        }

        .action-link:hover {
            border-color: var(--technical-blue);
            background: rgba(96, 165, 250, 0.1);
        }

        .site-footer {
            text-align: center;
            margin-top: 40px;
            color: var(--text-tertiary);
            font-size: 0.85rem;
        }

        .reset-btn {
            background: transparent;
            border: 1px solid var(--error);
            color: var(--error);
            margin-top: 30px;
            opacity: 0.8;
            margin-bottom: 30px;
            
        }

        .reset-btn:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--error);
            border-color: var(--error);
        }

        .scroll-top {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 48px;
            height: 48px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            box-shadow: 0 4px 12px var(--glow-blue);
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s var(--ease-out);
            pointer-events: none;
            z-index: 900;
            border: none;
        }

        @media (max-width: 768px) {
            .scroll-top {
                bottom: 80px;
                
            }
        }

        .scroll-top.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .scroll-top:active {
            transform: scale(0.9);
        }

        .toast-container {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--success);
            color: white;
            padding: 12px 24px;
            border-radius: var(--radius-btn);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 2000;
            transition: transform 0.4s var(--ease-out);
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .toast-container {
                bottom: 80px;
            }
        }

        .toast-container.show {
            transform: translateX(-50%) translateY(0);
        }

        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 3000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            max-width: 100%;
            max-height: 90vh;
            border-radius: var(--radius-sm);
            overflow: hidden;
            position: relative;
            transform: scale(0.95);
            transition: transform 0.3s var(--ease-out);
            background: var(--bg-card);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .modal-backdrop.active .modal-content {
            transform: scale(1);
        }

        .modal-content img {
            max-width: 100%;
            max-height: 85vh;
            display: block;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .celebration-content {
            padding: 40px;
            text-align: center;
            background: linear-gradient(135deg, #1e2235, #23273e);
            border: 1px solid var(--border-base);
            border-radius: 20px;
            max-width: 400px;
        }

        .celebration-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            animation: bounce 1s infinite alternate;
        }

        @keyframes bounce {
            from {
                transform: translateY(0);
            }

            to {
                transform: translateY(-10px);
            }
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .celebration-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 10px;
        }

        .celebration-text {
            color: var(--text-secondary);
            margin-bottom: 30px;
        }

        @media (max-width: 768px) {
            .controls {
                display: none;
                
            }

            .mobile-actions {
                display: flex;
            }

            .header-title {
                font-size: 1rem;
            }

            .intro-card {
                padding: 20px;
            }

            .check-item {
                padding: 16px 20px;
            }
        }
