/* index.php styles */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: url('https://img.eyei.eu.org/') center/cover fixed no-repeat; /* https://img.9527.nyc.mn或https://img.eyei.eu.org/或https://188771.xyz/img/ */
            min-height: 100vh;
            padding: 20px;
            transition: background 0.3s ease, color 0.3s ease;
        }
        
        .header {
            max-width: 1400px;
            margin: 0 auto 30px;
            background-color: rgba(100, 149, 237, 0.6); /* 蓝色背景 */
            border: 2px solid #436EEE;  /* 添加2px灰色边框 */
            padding: 20px 30px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }
        
        .header h1 {
            color: #333;
            font-size: 28px;
            text-align: center;
            margin: 0;
        }

        .header-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .site-logo {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 8px;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }



        .theme-switcher {
            position: absolute;
            right: 24px;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(67, 110, 238, 0.25);
            border-radius: 24px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
            z-index: 5;
        }

        .theme-btn {
            width: 32px;
            height: 32px;
            border: 0;
            border-radius: 50%;
            background: transparent;
            color: #333;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
            transition: all 0.2s ease;
        }

        .theme-btn:hover {
            background: rgba(67, 110, 238, 0.12);
        }

        .theme-btn.active {
            background: #138a72;
            color: #fff;
            box-shadow: 0 3px 8px rgba(19, 138, 114, 0.3);
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .vps-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
            margin-bottom: 28px;
        }
        
        @media (max-width: 1200px) {
            .vps-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 900px) {
            .vps-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        .vps-card {
            background-color: rgba(230, 230, 250, 0.8); /* 灰白色背景 */
            border: 2px solid #6495ED;  /* 添加2px灰色边框 */
            border-radius: 10px; /* 圆角效果 */
            padding: 22px 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .vps-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        }
        
        .vps-card:hover {
            background-color: rgba(222, 222, 222, 0.8); /* 加深灰白色背景 */
            border: 2px solid #7CCD7C;  /* 加深添加2px灰色边框 */
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .vps-card::after {
            content: '';
            position: absolute;
            top: -45%;
            left: 0;
            width: 46%;
            height: 190%;
            pointer-events: none;
            z-index: 4;
            opacity: 0;
            background: linear-gradient(
                102deg,
                transparent 0%,
                transparent 16%,
                rgba(255, 255, 255, 0.08) 24%,
                rgba(255, 255, 255, 0.55) 33%,
                rgba(255, 255, 255, 0.95) 38%,
                rgba(255, 255, 255, 0.22) 43%,
                transparent 50%,
                transparent 58%,
                rgba(255, 255, 255, 0.28) 65%,
                rgba(255, 255, 255, 0.92) 71%,
                rgba(255, 255, 255, 0.18) 76%,
                transparent 84%,
                transparent 100%
            );
            filter: blur(0.3px);
            transform: translateX(-240%) skewX(-24deg);
        }

        .vps-card:hover::after {
            animation: vps-card-flash 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
        }

        @keyframes vps-card-flash {
            0% {
                opacity: 0;
                transform: translateX(-240%) skewX(-24deg);
            }
            16% {
                opacity: 1;
            }
            78% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateX(320%) skewX(-24deg);
            }
        }

        .vps-card-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 12px;
        }
        
        .vps-name {
            font-size: 22px;
            font-weight: 600;
            color: #333;
            margin-bottom: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            line-height: 1.35;
        }
        
        .vps-connectivity-status {
            padding: 4px 10px;
            border-radius: 14px;
            font-size: 12px;
            font-weight: 500;
            margin-left: 8px;
        }
        
        .connectivity-normal {
            background: #d4edda;
            color: #155724;
        }
        
        .connectivity-offline {
            background: #f8d7da;
            color: #721c24;
        }
        
        .connectivity-checking {
            background: #e2e3e5;
            color: #383d41;
        }
        
        .vps-flag {
            width: 24px;
            height: 18px;
            object-fit: cover;
            border-radius: 2px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        
        .vps-status {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-active {
            background: #d4edda;
            color: #155724;
        }
        
        .status-warning {
            background: #fff3cd;
            color: #856404;
        }
        
        .status-expired {
            background: #f8d7da;
            color: #721c24;
        }
        
        .remaining-days-warning {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            background: #fff3cd;
            color: #856404;
        }
        
        .remaining-days-danger {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            background: #f8d7da;
            color: #721c24;
        }
        
        .vps-basic-info {
            margin-top: 10px;
            margin-bottom: 12px;
            padding: 10px 12px;
            background: #f8f9fa;
            border-radius: 5px;
            display: flex;
            align-items: flex-start;
            gap: 6px;
        }
        
        .vps-basic-info-label {
            color: #666;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        .vps-basic-info-content {
            color: #666;
            font-size: 15px;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
            flex: 1;
        }
        
        .vps-info {
            margin-top: 8px;
        }
        
        .info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0;
            border-bottom: 1px solid #f0f0f0;
            height: 32px;
            box-sizing: border-box;
            overflow: hidden;
        }
        
        .info-item:last-child {
            border-bottom: none;
        }
        
        .info-label {
            color: #666;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
            padding: 0;
            line-height: 22px;
            height: 32px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
        }
        
        .info-value {
            color: #333;
            font-size: 15px;
            font-weight: 500;
            text-align: left;
            flex: 1;
            line-height: 22px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0;
            height: 32px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
        }
        
        .info-value.highlight {
            color: #667eea;
            font-weight: 600;
        }
        .info-value.highlight2 {
            color: green;
            font-weight: 600;
        }
        
        .remaining-days-text-warning {
            color: #FFFF00;
            font-weight: 600;
        }
        
        .remaining-days-text-danger {
            color: red;
            font-weight: 600;
        }
        
        .vps-notes {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            min-height: 36px;
            box-sizing: border-box;
        }
        
        .vps-notes-label {
            color: #666;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        .vps-notes-content {
            color: #333;
            font-size: 14px;
            line-height: 1.5;
            white-space: pre-wrap;
            flex: 1;
        }
        
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: 10px;
            color: #999;
        }
        
        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.3;
        }
        
        .loading {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: 10px;
            color: #667eea;
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            overflow: auto;
        }
        
        .modal-content {
            background: white;
            margin: 50px auto;
            padding: 40px;
            border-radius: 10px;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }
        
        .modal-header {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .modal-header h2 {
            color: #333;
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .close {
            position: absolute;
            right: 20px;
            top: 20px;
            color: #aaa;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
        }
        
        .close:hover {
            background: #f0f0f0;
            color: #000;
        }
        
        .modal-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        .modal-info-item {
            padding: 15px;
            background: #f9f9f9;
            border-radius: 5px;
        }
        
        .modal-info-item.full {
            grid-column: 1 / -1;
        }
        
        .modal-info-label {
            color: #666;
            font-size: 12px;
            margin-bottom: 5px;
        }
        
        .modal-info-value {
            color: #333;
            font-size: 16px;
            font-weight: 500;
        }
        
        @media (max-width: 600px) {
            .vps-grid {
                grid-template-columns: 1fr;
            }
            
            .header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .theme-switcher {
                position: static;
                transform: none;
            }
            
            .modal-info {
                grid-template-columns: 1fr;
            }
        }

        .header-vps {
            max-width: 1400px;
            background-color: rgba(100, 149, 237, 0.2); /* 蓝色背景 */
            border: 2px solid #6495ED;  /* 添加2px灰色边框 */
            border-radius: 10px; /* 圆角效果 */
            font-size: 14px;
            color: #292929;
            margin: 15px auto;
            text-align: left;
            padding: 15px 20px;
            margin-top: -20px; /* 往上移20px */
        }
        
        .header-vps-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(100, 149, 237, 0.3);
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .header-vps-info-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .header-vps-info-label {
            font-weight: 500;
            color: #436EEE;
        }
        
        .header-vps-info-value {
            font-weight: 600;
            color: blue;
        }
        .footer {
            max-width: 1400px;
            background-color: rgba(100, 149, 237, 0.2); /* 蓝色背景 */
            border: 2px solid #6495ED;  /* 添加2px灰色边框 */
            border-radius: 10px; /* 圆角效果 */
            font-size: 14px;
            color: #f9f9f9;
            margin: 15px auto;
            text-align: center;
            margin-top: -20px; /* 往上移20px */
        }

        body.theme-light {
            background: #eef2f7;
            color: #1f2937;
        }

        body.theme-light .header,
        body.theme-light .header-vps,
        body.theme-light .footer {
            background: rgba(255, 255, 255, 0.92);
            border-color: #c7d2fe;
            color: #1f2937;
            box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
        }

        body.theme-light .vps-card,
        body.theme-light .empty-state,
        body.theme-light .loading,
        body.theme-light .modal-content {
            background: rgba(255, 255, 255, 0.96);
            border-color: #dbeafe;
            color: #1f2937;
        }

        body.theme-light .vps-card:hover {
            background: #f8fafc;
            border-color: #93c5fd;
        }

        body.theme-light .vps-name,
        body.theme-light .info-value,
        body.theme-light .vps-notes-content,
        body.theme-light .modal-header h2,
        body.theme-light .modal-info-value {
            color: #111827;
        }

        body.theme-light .info-label,
        body.theme-light .vps-notes-label,
        body.theme-light .vps-basic-info-label,
        body.theme-light .vps-basic-info-content,
        body.theme-light .modal-info-label {
            color: #4b5563;
        }

        body.theme-light .info-item,
        body.theme-light .vps-notes,
        body.theme-light .modal-header {
            border-color: #e5e7eb;
        }

        body.theme-light .modal-info-item,
        body.theme-light .vps-basic-info {
            background: #f8fafc;
        }

        body.theme-dark {
            background: #101827;
            color: #dbeafe;
        }

        body.theme-dark .header,
        body.theme-dark .header-vps,
        body.theme-dark .footer {
            background: rgba(15, 23, 42, 0.9);
            border-color: #334155;
            color: #dbeafe;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        }

        body.theme-dark .header h1,
        body.theme-dark .vps-name,
        body.theme-dark .info-value,
        body.theme-dark .vps-notes-content,
        body.theme-dark .modal-header h2,
        body.theme-dark .modal-info-value {
            color: #f8fafc;
        }

        body.theme-dark .vps-card,
        body.theme-dark .empty-state,
        body.theme-dark .loading,
        body.theme-dark .modal-content {
            background: rgba(30, 41, 59, 0.94);
            border-color: #475569;
            color: #dbeafe;
        }

        body.theme-dark .vps-card:hover {
            background: rgba(51, 65, 85, 0.96);
            border-color: #38bdf8;
        }

        body.theme-dark .info-label,
        body.theme-dark .vps-notes-label,
        body.theme-dark .vps-basic-info-label,
        body.theme-dark .vps-basic-info-content,
        body.theme-dark .modal-info-label {
            color: #cbd5e1;
        }

        body.theme-dark .info-item,
        body.theme-dark .vps-notes,
        body.theme-dark .modal-header {
            border-color: #334155;
        }

        body.theme-dark .modal-info-item,
        body.theme-dark .vps-basic-info {
            background: rgba(15, 23, 42, 0.75);
        }

        body.theme-dark .header-vps-info {
            border-top-color: #334155;
        }

        body.theme-dark .header-vps-info-label,
        body.theme-dark .info-value.highlight {
            color: #93c5fd;
        }

        body.theme-dark .header-vps-info-value,
        body.theme-dark .info-value.highlight2 {
            color: #86efac;
        }

        body.theme-dark .theme-switcher {
            background: rgba(15, 23, 42, 0.9);
            border-color: #475569;
        }

        body.theme-dark .theme-btn {
            color: #dbeafe;
        }

        body.theme-dark .theme-btn:hover {
            background: rgba(148, 163, 184, 0.16);
        }

        body.theme-dark .close:hover {
            background: #334155;
            color: #fff;
        }
