/* 学生卡片样式 */
        .students-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 24px;
        }

        @media (max-width: 768px) {
            .students-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .students-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        .student-card {
            background: white;
            border-radius: 24px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border: 2px solid transparent;
        }

        @media (max-width: 768px) {
            .student-card {
                padding: 12px;
                border-radius: 16px;
            }
        }

        .student-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
            border-color: #e0e7ff;
        }

        @media (max-width: 768px) {
            .student-card:hover {
                transform: translateY(-4px);
            }
        }

        .student-card.selected {
            border-color: #667eea;
            background: #f5f3ff;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
            position: relative;
        }

        .level-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 800;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        @media (max-width: 768px) {
            .level-badge {
                font-size: 10px;
                padding: 2px 8px;
            }
        }

        .score-display {
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 800;
            color: #f59e0b;
            font-size: 14px;
            background: rgba(245, 158, 11, 0.1);
            padding: 4px 10px;
            border-radius: 20px;
        }

        @media (max-width: 768px) {
            .score-display {
                font-size: 12px;
                padding: 2px 6px;
            }
        }

        .pet-container {
            width: 140px;
            height: 140px;
            margin: 0 auto 16px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 768px) {
            .pet-container {
                width: 100px;
                height: 100px;
                margin-bottom: 12px;
            }
        }

        @media (max-width: 480px) {
            .pet-container {
                width: 80px;
                height: 80px;
            }
        }

        .pet-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            animation: float 3s ease-in-out infinite;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
            transition: transform 0.3s;
        }

        .student-card:hover .pet-image {
            transform: scale(1.1);
            filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .pet-egg {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 -10px 20px rgba(0,0,0,0.05);
            animation: wobble 2s ease-in-out infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
        }

        @media (max-width: 768px) {
            .pet-egg {
                width: 70px;
                height: 70px;
                font-size: 36px;
            }
        }

        @keyframes wobble {
            0%, 100% { transform: rotate(-3deg); }
            50% { transform: rotate(3deg); }
        }

        .stage-badge {
            position: absolute;
            bottom: 0;
            right: 10px;
            background: rgba(255,255,255,0.95);
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            color: #667eea;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border: 2px solid #e0e7ff;
        }

        @media (max-width: 768px) {
            .stage-badge {
                font-size: 9px;
                padding: 2px 8px;
                right: 0;
            }
        }

        .student-info {
            text-align: center;
            position: relative;
        }

        .student-name {
            font-size: 18px;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        @media (max-width: 768px) {
            .student-name {
                font-size: 14px;
                gap: 4px;
            }
        }

        .pet-name {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 12px;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .pet-name {
                font-size: 11px;
                margin-bottom: 8px;
            }
        }

        /* 学号标签样式 */
        .student-no-tag {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
            color: #4338ca;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 6px;
            vertical-align: middle;
        }

        @media (max-width: 768px) {
            .student-no-tag {
                font-size: 10px;
                padding: 1px 6px;
                margin-left: 4px;
            }
        }

        .progress-container {
            background: #f1f5f9;
            height: 8px;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 8px;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            transition: width 0.5s ease;
            position: relative;
            overflow: hidden;
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .progress-text {
            font-size: 12px;
            color: #94a3b8;
            text-align: center;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .progress-text {
                font-size: 10px;
            }
        }

        /* 已养成宠物皇冠样式 - 修改为内联显示在名字右侧 */
        .adopted-crown {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 14px;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
            border: 2px solid white;
            position: relative;
            flex-shrink: 0;
            margin-left: 4px;
            vertical-align: middle;
        }

        .adopted-crown::after {
            content: attr(data-count);
            position: absolute;
            bottom: -4px;
            right: -4px;
            background: #dc2626;
            color: white;
            font-size: 10px;
            font-weight: 800;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
        }

        @media (max-width: 768px) {
            .adopted-crown {
                width: 20px;
                height: 20px;
                font-size: 12px;
                margin-left: 2px;
            }
            
            .adopted-crown::after {
                width: 12px;
                height: 12px;
                font-size: 9px;
                bottom: -3px;
                right: -3px;
                border-width: 1.5px;
            }
        }

        .penalty-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
            border-radius: 24px;
        }

        @media (max-width: 768px) {
            .penalty-overlay {
                border-radius: 16px;
            }
        }

        .student-card.penalty .penalty-overlay {
            opacity: 1;
        }

        .penalty-text {
            color: white;
            font-weight: 800;
            font-size: 24px;
            transform: rotate(-15deg);
            border: 3px solid white;
            padding: 8px 16px;
            border-radius: 12px;
        }

        /* 弹窗样式 - 玻璃拟态风格 */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 24px;
            max-width: 1000px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            animation: modalSlide 0.3s ease-out;
            border: 1px solid rgba(255,255,255,0.3);
        }

        @media (max-width: 768px) {
            .modal {
                padding: 10px;
                align-items: center;
                justify-content: center;
            }
            .modal-content {
                border-radius: 16px;
                max-height: 85vh;
                width: 100%;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
            }
            .modal-header {
                padding: 14px 16px;
                border-radius: 16px 16px 0 0;
                flex-shrink: 0;
            }
            .modal-body {
                padding: 16px 16px 50px 16px;
                max-height: calc(85vh - 60px);
                overflow-y: auto;
                flex: 1;
                box-sizing: border-box;
            }
            .modal-content.wide {
                width: 100%;
                max-width: 100%;
            }
        }

        .modal-content.wide {
            max-width: 1200px;
        }

        /* 宠物选择模态框 - 最高层级 */
        .modal.pet-select-modal {
            z-index: 9999;
        }

        .modal.pet-select-modal .modal-content {
            z-index: 9999;
        }

        @keyframes modalSlide {
            from { opacity: 0; transform: scale(0.95) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .modal-header {
            padding: 24px 32px;
            border-bottom: 2px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        @media (max-width: 768px) {
            .modal-header {
                padding: 16px 20px;
            }
        }

        .modal-title {
            font-size: 24px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 12px;
            color: white;
        }

        @media (max-width: 768px) {
            .modal-title {
                font-size: 18px;
            }
        }

        .modal-close {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.2);
            cursor: pointer;
            font-size: 20px;
            color: white;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 32px;
            overflow-y: auto;
            max-height: calc(90vh - 100px);
        }

        @media (max-width: 768px) {
            .modal-body {
                padding: 16px 16px 50px 16px;
                max-height: calc(88vh - 60px);
            }
        }

        /* 左右分栏布局 - 宠物图片居中修复 */
        .score-layout {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 32px;
            min-height: 500px;
        }

        @media (max-width: 968px) {
            .score-layout {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .left-panel {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 20px;
            padding: 24px;
            border: 2px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .right-panel {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .pet-showcase {
            text-align: center;
            position: relative;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .pet-showcase-img {
            width: 200px;
            height: 200px;
            object-fit: contain;
            filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
            animation: breathe 3s ease-in-out infinite;
            margin: 0 auto;
            display: block;
        }

        @media (max-width: 768px) {
            .pet-showcase-img {
                width: 150px;
                height: 150px;
            }
        }

        @keyframes breathe {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .pet-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            width: 100%;
        }

        .info-card {
            background: white;
            padding: 12px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border: 1px solid #e2e8f0;
        }

        .info-label {
            font-size: 12px;
            color: #64748b;
            margin-bottom: 4px;
        }

        .info-value {
            font-size: 18px;
            font-weight: 800;
            color: #1e293b;
        }

        .info-value.gold {
            color: #f59e0b;
        }

        .info-value.purple {
            color: #8b5cf6;
        }

        .adopted-pets-grid {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 8px;
        }

        .adopted-pet-thumb {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            object-fit: contain;
            background: white;
            padding: 4px;
            border: 2px solid #e0e7ff;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .adopted-pet-thumb:hover {
            transform: scale(1.1);
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .adopted-pet-thumb::after {
            content: attr(data-name);
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 10px;
            white-space: nowrap;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }

        .adopted-pet-thumb:hover::after {
            opacity: 1;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
        }

        @media (max-width: 768px) {
            .action-buttons {
                gap: 8px;
            }
        }

        .action-btn-large {
            padding: 10px 20px;
            border-radius: 12px;
            border: none;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
        }

        @media (max-width: 768px) {
            .action-btn-large {
                padding: 8px 14px;
                font-size: 12px;
                flex: 1;
                justify-content: center;
            }
        }

        .btn-book {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .btn-book:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
        }

        .btn-certificate {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }

        .btn-certificate:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        }

        .btn-adopt {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            animation: pulse-green 2s infinite;
        }

        @keyframes pulse-green {
            0%, 100% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
            50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5); }
        }

        .btn-adopt:hover {
            transform: translateY(-2px) scale(1.05);
        }

        .btn-new-pet {
            background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
            animation: pulse-pink 1.5s infinite;
            position: relative;
            overflow: hidden;
        }

        .btn-new-pet::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 30%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 70%
            );
            animation: shine 2s infinite;
        }

        @keyframes pulse-pink {
            0%, 100% { 
                box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 6px 24px rgba(236, 72, 153, 0.6);
                transform: scale(1.02);
            }
        }

        @keyframes shine {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }

        /* 加减分项目样式 - 卡片式布局 */
        .score-tabs-container {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }

        .score-tab-btn {
            flex: 1;
            padding: 16px;
            border-radius: 16px;
            border: 2px solid #e2e8f0;
            background: white;
            cursor: pointer;
            font-weight: 700;
            font-size: 16px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .score-tab-btn.active {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .score-tab-btn.add {
            color: #059669;
            border-color: #a7f3d0;
        }

        .score-tab-btn.add.active {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            border-color: transparent;
        }

        .score-tab-btn.sub {
            color: #dc2626;
            border-color: #fecaca;
        }

        .score-tab-btn.sub.active {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            border-color: transparent;
        }

        .score-content {
            display: none;
        }

        .score-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .score-section {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
            border: 1px solid #e2e8f0;
        }

        .score-section-title {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .score-section-title.add {
            color: #059669;
        }

        .score-section-title.sub {
            color: #dc2626;
        }

        .score-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        @media (max-width: 768px) {
            .score-tags {
                gap: 8px;
            }
        }

        .score-tag {
            padding: 10px 16px;
            border-radius: 12px;
            border: 2px solid #e2e8f0;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 600;
            user-select: none;
        }

        @media (max-width: 768px) {
            .score-tag {
                padding: 8px 12px;
                font-size: 13px;
                flex: 1;
                min-width: calc(50% - 4px);
                justify-content: center;
            }
        }

        .score-tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .score-tag.add {
            border-color: #a7f3d0;
            color: #065f46;
        }

        .score-tag.add:hover {
            background: #d1fae5;
            border-color: #34d399;
        }

        .score-tag.sub {
            border-color: #fecaca;
            color: #991b1b;
        }

        .score-tag.sub:hover {
            background: #fee2e2;
            border-color: #f87171;
        }

        /* 图鉴弹窗样式 - 移动端优化 */
        .evolution-timeline {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40px 20px;
            position: relative;
        }

        @media (max-width: 768px) {
            .evolution-timeline {
                flex-direction: column;
                gap: 20px;
                padding: 20px 10px;
            }
            .evolution-timeline::before {
                display: none;
            }
        }

        .evolution-timeline::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 10%;
            right: 10%;
            height: 4px;
            background: linear-gradient(90deg, #e0e7ff 0%, #c7d2fe 100%);
            transform: translateY(-50%);
            z-index: 0;
        }

        .evolution-stage {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            position: relative;
            z-index: 1;
            flex: 1;
        }

        .stage-node {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: white;
            border: 4px solid #e0e7ff;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: all 0.3s;
            overflow: hidden;
        }

        @media (max-width: 768px) {
            .stage-node {
                width: 60px;
                height: 60px;
            }
        }

        .stage-node.unlocked {
            border-color: #667eea;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
        }

        .stage-node.current {
            border-color: #f59e0b;
            box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
            animation: glow 2s infinite;
        }

        @keyframes glow {
            0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
            50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.8); }
        }

        .stage-node img {
            width: 70%;
            height: 70%;
            object-fit: contain;
        }

        .stage-node.locked {
            background: #f1f5f9;
            filter: grayscale(100%);
        }

        .stage-node.locked::after {
            content: '🔒';
            position: absolute;
            font-size: 24px;
        }

        .stage-info {
            text-align: center;
        }

        .stage-name {
            font-weight: 700;
            font-size: 14px;
            color: #1e293b;
            margin-bottom: 4px;
        }

        @media (max-width: 768px) {
            .stage-name {
                font-size: 12px;
            }
        }

        .stage-level {
            font-size: 12px;
            color: #64748b;
        }

        /* 证书样式 */
        .certificate-container {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 8px solid #f59e0b;
            border-radius: 20px;
            padding: 60px;
            text-align: center;
            position: relative;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            max-width: 800px;
            margin: 0 auto;
        }

        @media (max-width: 768px) {
            .certificate-container {
                padding: 30px 20px;
                border-width: 4px;
            }
        }

        .certificate-container::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            bottom: 10px;
            border: 2px solid rgba(245, 158, 11, 0.3);
            border-radius: 12px;
            pointer-events: none;
        }

        .cert-title {
            font-size: 48px;
            font-weight: 900;
            color: #92400e;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            font-family: 'Noto Sans SC', serif;
        }

        @media (max-width: 768px) {
            .cert-title {
                font-size: 28px;
            }
        }

        .cert-content {
            font-size: 20px;
            line-height: 2;
            color: #78350f;
            margin: 40px 0;
        }

        @media (max-width: 768px) {
            .cert-content {
                font-size: 16px;
                margin: 20px 0;
            }
        }

        .cert-highlight {
            font-size: 32px;
            font-weight: 800;
            color: #b45309;
            margin: 20px 0;
            display: inline-block;
            border-bottom: 3px solid #f59e0b;
            padding: 0 20px;
        }

        @media (max-width: 768px) {
            .cert-highlight {
                font-size: 24px;
            }
        }

        .cert-pet-img {
            width: 150px;
            height: 150px;
            object-fit: contain;
            margin: 20px auto;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
        }

        @media (max-width: 768px) {
            .cert-pet-img {
                width: 100px;
                height: 100px;
            }
        }

        .cert-seal {
            position: absolute;
            bottom: 40px;
            right: 60px;
            width: 120px;
            height: 120px;
            background: #dc2626;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 900;
            font-size: 16px;
            transform: rotate(-15deg);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            border: 4px solid #fee2e2;
        }

        @media (max-width: 768px) {
            .cert-seal {
                width: 80px;
                height: 80px;
                font-size: 12px;
                bottom: 20px;
                right: 20px;
            }
        }

        .cert-date {
            position: absolute;
            bottom: 40px;
            left: 60px;
            font-size: 16px;
            color: #92400e;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .cert-date {
                font-size: 12px;
                bottom: 20px;
                left: 20px;
            }
        }

/* 商店样式 - 双货币 - 美化版 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.shop-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #f3e8ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .shop-item {
        padding: 16px;
        border-radius: 16px;
    }
}

.shop-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
    border-color: #d8b4fe;
}

/* 修改：确保角标文字完整显示，同时不受overflow:hidden影响边缘 */
.shop-item-ribbon {
    position: absolute;
    top: 22px;
    right: -38px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    padding: 6px 45px;
    font-size: 13px;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    z-index: 10;
    text-align: center;
    letter-spacing: 1px;
}

.shop-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.shop-item-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.3);
}

@media (max-width: 768px) {
    .shop-item-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

.shop-item-title {
    flex: 1;
}

.shop-item-name {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .shop-item-name {
        font-size: 16px;
    }
}

.shop-item-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.shop-price-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

/* 价格兑换选项进一步美化 */
.price-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.price-option:hover {
    border-color: #a855f7;
    background: #faf5ff;
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.1);
}

.price-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: transparent;
}

.price-option.disabled:hover {
    transform: none;
    box-shadow: none;
}

.price-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.price-value {
    font-weight: 800;
    font-size: 16px;
}

.price-value.points {
    color: #f59e0b;
}

.price-value.pet {
    color: #8b5cf6;
}

.exchange-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    margin-top: 8px;
    font-size: 16px;
}

.exchange-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.exchange-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pet-exchange-selector {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 2px solid #e0e7ff;
}

.pet-exchange-selector.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.pet-mini-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pet-mini-item {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e0e7ff;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s;
    position: relative;
}

.pet-mini-item:hover {
    border-color: #a855f7;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.pet-mini-item.selected {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.pet-mini-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

        /* 工作台标签页 - 美化版 */
        .workbench-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 28px;
            border-bottom: 3px solid #f1f5f9;
            padding-bottom: 16px;
            flex-wrap: wrap;
            justify-content: flex-start;
            overflow-x: visible;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .workbench-tabs::-webkit-scrollbar {
            display: none;
        }

@media (max-width: 768px) {
    .workbench-tabs {
        gap: 6px;
        margin-bottom: 20px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        justify-content: flex-start;
        /* 美化横向滚动条 - Firefox */
        scrollbar-width: thin;
        scrollbar-color: #667eea #f1f5f9;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Webkit浏览器的美化滚动条 */
    .workbench-tabs::-webkit-scrollbar {
        display: block;
        height: 4px;
        background: transparent;
    }
    
    .workbench-tabs::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
        margin: 0 4px;
    }
    
    .workbench-tabs::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .workbench-tabs::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #5a67d8 0%, #6b46c1 100%);
    }
        }

        .workbench-tab {
            padding: 10px 16px;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            color: #64748b;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border: 2px solid transparent;
            white-space: nowrap;
            flex: 0 0 auto;
        }

        @media (max-width: 768px) {
            .workbench-tab {
                padding: 8px 12px;
                font-size: 13px;
                gap: 4px;
            }
        }

        .workbench-tab:hover {
            background: white;
            color: #667eea;
            border-color: #e0e7ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .workbench-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
            border-color: transparent;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* 表单样式 - 美化版 */
        .form-group {
            margin-bottom: 24px;
        }

        .form-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 700;
            color: #374151;
            font-size: 15px;
        }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid #e5e7eb;
            border-radius: 24px;  /* 统一椭圆效果 */
            font-size: 15px;
            transition: all 0.3s;
            outline: none;
            font-family: inherit;
            background: white;
        }

        @media (max-width: 768px) {
            .form-input, .form-select, .form-textarea {
                border-radius: 20px;  /* 移动端椭圆 */
            }
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        .btn-primary {
            padding: 12px 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            font-size: 15px;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            padding: 12px 24px;
            background: #f3f4f6;
            color: #374151;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
        }

        .btn-secondary:hover {
            background: #e5e7eb;
            transform: translateY(-1px);
        }

        .btn-danger {
            padding: 12px 24px;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 15px;
        }

        .btn-danger:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

        /* 列表样式 - 美化版 */
        .list-item {
            padding: 18px;
            background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
            border-radius: 16px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
            border: 2px solid #f3f4f6;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .list-item:hover {
            border-color: #e0e7ff;
            background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .list-item-info {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .list-item-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 18px;
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        }

        /* PK模式按钮样式 */
        .pk-mode-buttons {
            display: flex;
            gap: 12px;
        }

        .pk-mode-btn {
            flex: 1;
            padding: 14px 20px;
            border-radius: 14px;
            border: 2px solid #e5e7eb;
            background: white;
            color: #6b7280;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .pk-mode-btn:hover {
            border-color: #667eea;
            color: #667eea;
        }

        .pk-mode-btn.active {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

/* 排序选择器样式 - 统一椭圆效果补充 */
.sort-select {
    border-radius: 24px !important;  /* 强制椭圆效果 */
}

@media (max-width: 768px) {
    .sort-select {
        border-radius: 20px !important;  /* 移动端强制椭圆 */
    }
}