        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            background-attachment: fixed;
            background-size: cover;
        }

        .container {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12px);
            border-radius: 24px;
            padding: 25px;
            width: 100%;
            max-width: 900px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
            margin-top: 20px;
            transition: all 0.4s ease;
        }

        h1 {
            font-size: 2.4rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
            letter-spacing: 1px;
            color: #FFD700;
            animation: fadeIn 1s ease;
        }

        .date-picker-container {
            margin: 25px 0;
        }

        .date-picker {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            animation: slideUp 0.8s ease;
        }

        .date-part {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 18px;
            padding: 12px 20px;
            font-size: 1.6rem;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 85px;
            border: 2px solid transparent;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            flex: 1;
            max-width: 120px;
        }

        .date-part:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

        .date-part:active {
            transform: translateY(-1px);
        }

        .date-part.editing {
            background: rgba(255, 255, 255, 0.4);
            border-color: #4CAF50;
            box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
        }

        .date-part input {
            background: rgba(255, 255, 255, 0.3);
            border: none;
            border-radius: 12px;
            padding: 8px 12px;
            font-size: 1.5rem;
            text-align: center;
            width: 100%;
            color: #fff;
            outline: none;
            transition: all 0.3s ease;
        }

        .date-part input:focus {
            background: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
        }

        .time-book {
            margin: 25px 0;
            text-align: center;
            width: 100%;
        }

        .time-book-title {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #E0E0E0;
        }

        .time-book-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            max-width: 700px;
            margin: 0 auto;
        }

        .time-book-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 12px;
            padding: 10px 18px;
            font-size: 1.2rem;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
            flex: 1;
            max-width: 220px;
        }

        .time-book-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .time-book-btn:active {
            transform: translateY(0);
        }

        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .festival-btn {
            background: linear-gradient(to right, #FF9A00, #FF4D4D);
            border: none;
            border-radius: 12px;
            padding: 12px 25px;
            font-size: 1.3rem;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            min-width: 180px;
            flex: 1;
            max-width: 300px;
        }

        .festival-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .festival-btn:active {
            transform: translateY(0);
        }

        .countdown-container {
            margin: 30px 0;
            width: 100%;
        }

        .countdown-display {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
            width: 100%;
        }

        .countdown-row {
            display: flex;
            justify-content: center;
            gap: 25px;
            width: 100%;
            margin-bottom: 15px;
        }

        .countdown-item {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 20px 25px;
            min-width: 100px;
            transition: all 0.4s ease;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            max-width: 150px;
        }

        .countdown-value {
            font-size: 2.6rem;
            font-weight: bold;
            display: block;
            margin: 0 auto;
            color: #FFD700;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            animation: pulse 1.5s infinite;
        }

        .countdown-label {
            font-size: 1.3rem;
            color: #E0E0E0;
            margin-top: 8px;
            letter-spacing: 0.5px;
        }

        .special-message {
            font-size: 1.5rem;
            font-weight: bold;
            margin-top: 20px;
            color: #FF4D4D;
            min-height: 40px;
            transition: all 0.5s ease;
            opacity: 0;
            transform: translateY(10px);
        }

        .special-message.active {
            opacity: 1;
            transform: translateY(0);
            animation: bounce 1s ease;
        }

        .festival-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            animation: fadeIn 0.4s ease;
        }

        .festival-modal-content {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            border-radius: 24px;
            padding: 24px;
            width: 92%;
            max-width: 600px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.15);
            animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        .modal-header h2 {
            font-size: 1.8rem;
            color: #FFD700;
            font-weight: 600;
            letter-spacing: 0.8px;
        }

        .close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.6rem;
            color: #FFD700;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.25s ease;
        }

        .close:hover {
            background: rgba(255, 215, 0, 0.2);
            transform: rotate(90deg);
        }

        .festival-scroll-container {
            flex: 1;
            overflow-y: auto;
            padding-right: 6px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 215, 0, 0.4) transparent;
        }

        .festival-scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .festival-scroll-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .festival-scroll-container::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.4);
            border-radius: 3px;
        }

        .festival-scroll-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 215, 0, 0.7);
        }

        .festival-list {
            display: grid;
            gap: 18px;
            padding: 4px 0;
        }

        @media (hover: none) {
            .festival-scroll-container {
                scrollbar-width: none;
            }

            .festival-scroll-container::-webkit-scrollbar {
                display: none;
            }

            .festival-scroll-container {
                -webkit-overflow-scrolling: touch;
            }
        }

        .festival-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .festival-item {
            background: rgba(255, 255, 255, 0.08);
            border: none;
            border-radius: 18px;
            color: white;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
            position: relative;
            min-height: 100px;
            text-align: center;
            overflow: hidden;
        }

        .festival-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
            z-index: -1;
        }

        .festival-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.12);
            transition: transform 0.3s ease;
        }

        .festival-item:hover {
            background: rgba(255, 215, 0, 0.15);
            transform: translateY(-4px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
        }

        .festival-item:hover .festival-icon {
            transform: scale(1.15);
        }

        .festival-name {
            font-weight: 600;
            letter-spacing: 0.5px;
            line-height: 1.3;
            padding: 0 6px;
        }

        .festival-item:active {
            transform: translateY(-2px);
        }

        .delete-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255, 77, 77, 0.2);
            color: #ff6b6b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            opacity: 0;
            transition: opacity 0.2s, transform 0.2s;
            pointer-events: auto;
        }

        .festival-item:hover .delete-icon {
            opacity: 1;
        }

        .delete-icon:hover {
            background: rgba(255, 77, 77, 0.4);
            transform: scale(1.2);
        }

        .scroll-indicator {
            display: none;
            text-align: center;
            color: rgba(255, 215, 0, 0.7);
            font-size: 0.85rem;
            margin-top: 12px;
            animation: bounce 2s infinite;
        }

        .festival-item.delete-animation {
            opacity: 0;
            transform: translateY(5px);
            transition: all 0.3s ease;
        }

        .festival-item.dragging {
            opacity: 0.6 !important;
            transform: scale(0.95) !important;
            z-index: 10;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% {
                text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
            }

            50% {
                text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
            }

            100% {
                text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
            }
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        @media (min-width: 1024px) {
            .festival-list {
                grid-template-columns: repeat(4, 1fr);
            }

            .festival-item {
                font-size: 1.4rem;
                padding: 22px 8px;
            }

            .festival-icon {
                font-size: 2.6rem;
                width: 65px;
                height: 65px;
            }
        }

        @media (min-width: 1200px) {
            .container {
                padding: 35px;
                border-radius: 28px;
            }

            h1 {
                font-size: 2.8rem;
            }

            .date-picker {
                gap: 20px;
            }

            .date-part {
                font-size: 1.8rem;
                padding: 14px 25px;
                min-width: 100px;
            }

            .countdown-value {
                font-size: 3.2rem;
            }

            .countdown-label {
                font-size: 1.4rem;
            }

            .festival-modal-content {
                max-width: 650px;
            }

            .festival-list {
                grid-template-columns: repeat(4, 1fr);
            }

            .festival-item {
                font-size: 1.4rem;
            }

            .time-book-btn {
                min-width: 160px;
                font-size: 1.3rem;
            }
        }

        @media (min-width: 769px) and (max-width: 1199px) {
            .container {
                padding: 30px;
            }

            h1 {
                font-size: 2.4rem;
            }

            .date-part {
                font-size: 1.6rem;
                padding: 12px 20px;
            }

            .countdown-value {
                font-size: 2.8rem;
            }

            .festival-modal-content {
                max-width: 550px;
            }

            .festival-list {
                grid-template-columns: repeat(3, 1fr);
            }

            .time-book-btn {
                min-width: 150px;
                font-size: 1.2rem;
            }
        }

        @media (min-width: 769px) {
            .date-picker {
                flex-wrap: nowrap;
                gap: 20px;
            }

            .countdown-row {
                display: none;
            }

            .countdown-display {
                flex-wrap: nowrap;
                justify-content: space-around;
            }

            .countdown-item {
                flex: 1;
                max-width: 150px;
                min-width: 100px;
            }

            @media (min-width: 1200px) {
                .countdown-display {
                    gap: 35px;
                }
            }
        }

        @media (min-width: 769px) and (max-width: 1023px) {
            .festival-list {
                grid-template-columns: repeat(3, 1fr);
            }

            .festival-item {
                font-size: 1.35rem;
                padding: 20px 10px;
            }

            .festival-icon {
                font-size: 2.4rem;
                width: 60px;
                height: 60px;
            }
        }

        @media (max-width: 768px) {
            .date-picker-container {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .countdown-container {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }

            .countdown-display {
                display: none;
            }

            .countdown-row.days-row {
                margin-bottom: 10px;
            }

            .countdown-item {
                padding: 18px 20px;
            }

            .countdown-value {
                font-size: 2.4rem;
            }

            .time-book-buttons {
                flex-direction: column;
                gap: 12px;
            }

            .time-book-btn {
                width: 100%;
                max-width: none;
                min-width: auto;
                font-size: 1.3rem;
                padding: 12px;
            }

            .action-buttons {
                flex-direction: column;
                gap: 15px;
            }

            .festival-btn {
                width: 100%;
                max-width: none;
                min-width: auto;
                font-size: 1.4rem;
                padding: 14px;
            }

            .modal-header h2 {
                font-size: 1.8rem;
            }

            .festival-modal-content {
                padding: 20px;
                max-width: 95%;
            }

            .festival-list {
                grid-template-columns: repeat(2, 1fr);
            }

            .special-message {
                font-size: 1.3rem;
            }
        }

        @media (max-height: 700px) and (max-width: 768px) {
            .scroll-indicator {
                display: block;
            }
        }

        @media (max-width: 575px) {
            .festival-list {
                grid-template-columns: 1fr;
            }

            .festival-item {
                font-size: 1.25rem;
                padding: 16px;
            }

            .festival-icon {
                font-size: 2.0rem;
                width: 50px;
                height: 50px;
            }
        }

        @media (min-width: 576px) and (max-width: 768px) {
            .festival-list {
                grid-template-columns: repeat(2, 1fr);
            }

            .festival-item {
                font-size: 1.3rem;
                padding: 18px 12px;
            }

            .festival-icon {
                font-size: 2.2rem;
                width: 55px;
                height: 55px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .container {
                border-radius: 20px;
                padding: 20px 15px;
            }

            h1 {
                font-size: 1.9rem;
            }

            .date-part {
                font-size: 1.4rem;
                padding: 10px 15px;
                min-width: 70px;
            }

            .countdown-value {
                font-size: 2.1rem;
            }

            .countdown-label {
                font-size: 1.2rem;
            }

            .festival-list {
                grid-template-columns: 1fr;
            }

            .festival-item {
                padding: 15px 10px;
                font-size: 1.3rem;
            }

            .time-book-title {
                font-size: 1.2rem;
            }

            .time-book-btn {
                font-size: 1.2rem;
                padding: 10px;
            }

            .festival-btn {
                font-size: 1.2rem;
                padding: 12px;
            }

            .special-message {
                font-size: 1.1rem;
            }
        }

        .festival-item.dragging {
            opacity: 0.7;
            transform: scale(0.95);
            z-index: 100;
        }

        .festival-item.drag-over {
            border: 2px solid #FFD700;
        }

        .scroll-indicator {
            display: none;
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            z-index: 1;
        }

        @media (max-width: 768px) {
            .scroll-indicator {
                display: block;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }