/* CSS Document */


 /* ================= 基础重置与全局样式 ================= */
        :root {
            --primary-color: #003D87; /* 浙大蓝 */
            --primary-light: #E8F0FE;
            --accent-color: #D4AF37;  /* 金色点缀 */
            --text-main: #1F2937;
            --text-secondary: #6B7280;
            --border-color: #E5E7EB;
            --bg-body: #F3F4F6;
            --bg-card: #FFFFFF;
            --shadow-sm: 0 1px 2px 0 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);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            background-color: var(--bg-body);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            font-size: 14px;
            color: var(--text-main);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        a { text-decoration: none; color: var(--primary-color); transition: color 0.2s; }
        a:hover { color: #002855; }

        /* ================= 顶部与导航 ================= */
        .header-banner {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 20px 0;
        }
        .header-banner img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            display: block;
        }

        .nav-bar {
            max-width: 1200px;
            margin: 20px auto 0;
            padding: 0 20px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .nav-item {
            padding: 10px 24px;
            background: var(--bg-card);
            border-radius: 8px;
            font-weight: 500;
            color: var(--text-secondary);
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            cursor: pointer;
            font-size: 14px;
        }
        .nav-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            color: var(--primary-color);
        }
        .nav-item.active {
            background: var(--primary-color);
            color: #FFFFFF;
        }
        .nav-item.active:hover {
            color: #FFFFFF;
            background: #002855;
        }

        /* ================= 主内容区 ================= */
        .main-container {
            max-width: 1200px;
            margin: 24px auto;
            padding: 0 20px;
        }

        .card {
            background: var(--bg-card);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 24px;
            margin-bottom: 24px;
        }

        /* 面包屑 */
        .breadcrumb {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .breadcrumb a { color: var(--text-secondary); }
        .breadcrumb a:hover { color: var(--primary-color); }
        .breadcrumb .separator { color: #D1D5DB; }
        .breadcrumb .current { color: var(--primary-color); font-weight: 500; }

        /* ================= 桌面端：现代表格样式 ================= */
        .table-wrapper {
            overflow-x: auto; 
            margin: 0 -10px; 
            padding: 0 10px;
        }

        .modern-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 800px; 
        }

        .modern-table th {
            background-color: var(--primary-color);
            color: #FFFFFF;
            padding: 14px 16px;
            text-align: left;
            font-weight: 500;
            font-size: 14px;
            white-space: nowrap;
        }
        .modern-table th:first-child { border-top-left-radius: 8px; }
        .modern-table th:last-child { border-top-right-radius: 8px; }

        .modern-table td {
            padding: 16px;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-main);
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .modern-table tbody tr { transition: all 0.2s ease; }
        
        .modern-table tbody tr:hover td {
            background-color: var(--primary-light);
            cursor: pointer;
        }
        .modern-table tbody tr:hover {
            box-shadow: inset 4px 0 0 var(--primary-color); 
        }

        .tag {
            display: inline-block;
            padding: 4px 10px;
            background: #FEF3C7;
            color: #92400E;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }
        .course-name { font-weight: 600; color: var(--text-main); }
        .course-name:hover { color: var(--primary-color); text-decoration: underline; }
        .price { color: #DC2626; font-weight: 600; }

        .btn-detail {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 8px 18px;
            background: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }
        .btn-detail:hover {
            background: var(--primary-color);
            color: #FFFFFF;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0, 61, 135, 0.2);
        }
        .btn-detail .arrow { transition: transform 0.3s; }
        .btn-detail:hover .arrow { transform: translateX(3px); }

        /* ================= 底部信息 ================= */
        .footer-info {
            text-align: center;
            padding: 20px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 2;
        }
        .footer-info .hotline {
            font-size: 20px;
            font-weight: 600;
            color: #DC2626;
            letter-spacing: 1px;
        }
        .footer-info a {
            color: var(--text-secondary);
            border-bottom: 1px dashed var(--text-secondary);
        }

        /* ==========================================================================
           📱 移动端专属样式 (屏幕宽度 <= 768px)
           ========================================================================== */
        @media (max-width: 768px) {
            body { font-size: 13px; }
            
            .header-banner { padding: 12px 12px 0; }
            .header-banner img { border-radius: 8px; }
            
            .nav-bar { 
                padding: 0 12px; 
                gap: 8px; 
                margin-top: 12px;
            }
            .nav-item { 
                padding: 8px 16px; 
                font-size: 13px; 
                flex: 1; 
                text-align: center;
                min-width: calc(33% - 8px);
            }

            .main-container { 
                padding: 0 12px; 
                margin-top: 16px; 
            }
            
            .card { 
                padding: 16px 12px; 
                border-radius: 8px; 
                box-shadow: var(--shadow-sm);
            }

            .breadcrumb { 
                font-size: 12px; 
                margin-bottom: 16px; 
                gap: 4px;
            }

            /* --- 核心：表格转卡片布局 --- */
            .table-wrapper {
                margin: 0;
                padding: 0;
                overflow: visible;
            }

            .modern-table {
                min-width: 100%; /* 取消最小宽度限制 */
            }

            /* 隐藏桌面端表头 */
            .modern-table thead {
                display: none;
            }

            .modern-table, 
            .modern-table tbody, 
            .modern-table tr, 
            .modern-table td {
                display: block;
                width: 100%;
            }

            .modern-table tr {
                background: #fff;
                border: 1px solid var(--border-color);
                border-radius: 12px;
                margin-bottom: 16px;
                padding: 4px 0;
                box-shadow: 0 2px 4px rgba(0,0,0,0.03);
                transition: all 0.2s;
            }
            
            .modern-table tr:active {
                transform: scale(0.98);
                background: #fcfcfc;
            }

            .modern-table td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 16px;
                border-bottom: 1px dashed #f3f4f6;
                text-align: right;
                font-size: 14px;
            }
            
            .modern-table td:last-child {
                border-bottom: none;
                padding-top: 16px;
                justify-content: flex-end; /* 按钮靠右 */
            }

            /* 利用 data-label 属性在移动端生成前置标签 */
            .modern-table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: var(--text-secondary);
                text-align: left;
                margin-right: 12px;
                flex-shrink: 0;
                font-size: 13px;
            }

            /* 移动端特定单元格样式微调 */
            .modern-table td[data-label="项目名称"] {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
            .modern-table td[data-label="项目名称"]::before {
                margin-bottom: 0;
            }
            .course-name {
                font-size: 15px;
                line-height: 1.4;
                text-align: left;
                width: 100%;
            }

            .btn-detail {
                width: 100%;
                padding: 10px;
                border-radius: 8px;
                font-size: 14px;
                background: var(--primary-color);
                color: #fff;
                border: none;
            }
            .btn-detail:active {
                background: #002855;
            }

            .footer-info {
                padding: 16px 12px;
                font-size: 12px;
            }
            .footer-info .hotline {
                font-size: 18px;
            }
        }
