/* 本地字体 ZCOOL KuaiLe */
@font-face {
    font-family: 'ZCOOL KuaiLe';
    src: url('../fonts/ZCOOLKuaiLe-Regular.woff2') format('woff2');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

:root {
    --pink-light: #FFF5F7;
    --pink: #FFB7C5;
    --pink-deep: #FF8FAB;
    --purple-light: #E6E6FA;
    --purple: #DDA0DD;
    --mint: #98FF98;
    --cream: #FFF5EE;
    --text: #5A3D5C;
    --text-light: #8B6F8E;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(255, 183, 197, 0.3);
    --shadow-hover: 0 12px 32px rgba(255, 143, 171, 0.4);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: "ZCOOL KuaiLe", cursive, sans-serif;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--cream) 50%, var(--purple-light) 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== 飘落的花瓣 ====== */
.petals {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.petal {
    position: absolute;
    top: -20px;
    width: 12px; height: 12px;
    background: var(--pink);
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    animation: fall linear infinite;
}
.petal:nth-child(2n) {
    background: var(--purple);
    border-radius: 50% 50% 0 50%;
    width: 10px; height: 10px;
}
.petal:nth-child(3n) {
    background: var(--mint);
    width: 8px; height: 8px;
    border-radius: 50%;
}
@keyframes fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.petal:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.petal:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 1s; }
.petal:nth-child(3) { left: 25%; animation-duration: 7s; animation-delay: 2s; }
.petal:nth-child(4) { left: 35%; animation-duration: 9s; animation-delay: 0.5s; }
.petal:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; }
.petal:nth-child(6) { left: 55%; animation-duration: 8s; animation-delay: 1.5s; }
.petal:nth-child(7) { left: 65%; animation-duration: 10s; animation-delay: 2.5s; }
.petal:nth-child(8) { left: 75%; animation-duration: 7s; animation-delay: 0.8s; }
.petal:nth-child(9) { left: 85%; animation-duration: 9s; animation-delay: 3.5s; }
.petal:nth-child(10) { left: 95%; animation-duration: 12s; animation-delay: 1.2s; }

/* ====== 闪烁的星星 ====== */
.stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.star {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--pink-deep);
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
.star:nth-child(1) { top: 8%; left: 12%; animation-duration: 2s; }
.star:nth-child(2) { top: 15%; left: 88%; animation-duration: 2.5s; animation-delay: 0.3s; }
.star:nth-child(3) { top: 30%; left: 5%; animation-duration: 1.8s; animation-delay: 0.7s; }
.star:nth-child(4) { top: 45%; left: 95%; animation-duration: 2.2s; animation-delay: 1s; }
.star:nth-child(5) { top: 60%; left: 20%; animation-duration: 2.8s; animation-delay: 0.5s; }
.star:nth-child(6) { top: 75%; left: 80%; animation-duration: 2s; animation-delay: 1.2s; }
.star:nth-child(7) { top: 90%; left: 40%; animation-duration: 2.3s; animation-delay: 0.8s; }
.star:nth-child(8) { top: 25%; left: 60%; animation-duration: 2.6s; animation-delay: 1.5s; }

/* ====== 主容器 ====== */
.announcement-banner {
    background: linear-gradient(90deg, var(--pink-light), var(--pink-light), var(--pink-light));
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(255, 183, 197, 0.3);
    border: 2px solid var(--pink);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}
.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--pink-deep), var(--pink));
}
.announcement-slider {
    position: relative;
    overflow: hidden;
    height: 40px;
}
.announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(100%);
}
.announcement-item.active {
    opacity: 1;
    transform: translateX(0);
}
.announcement-item.exit {
    opacity: 0;
    transform: translateX(-100%);
}
.announcement-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}
.announcement-badge.info {
    background: #4CAF50;
}
.announcement-badge.urgent {
    background: #F44336;
    animation: urgentPulse 1s ease-in-out infinite;
}
.announcement-badge.maintenance {
    background: #FF9800;
}
@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.announcement-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}
.announcement-text strong {
    color: var(--pink-deep);
}

/* ====== 公告弹窗样式 ====== */
.announcement-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(90, 61, 92, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: overlayFadeIn 0.3s ease;
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.announcement-popup {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(255, 143, 171, 0.4);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.announcement-popup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pink), var(--pink-deep), var(--pink));
    border-radius: 24px 24px 0 0;
}
.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pink-light);
}
.popup-icon {
    width: 32px;
    height: 32px;
    color: var(--pink-deep);
    flex-shrink: 0;
}
.popup-header h3 {
    margin: 0;
    color: var(--pink-deep);
    font-size: 20px;
    font-family: 'ZCOOL KuaiLe', sans-serif;
}
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.popup-ann-item {
    padding: 16px;
    background: var(--pink-light);
    border-radius: 12px;
    border-left: 4px solid var(--pink);
}
.popup-ann-item .popup-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}
.popup-ann-item .popup-badge.info {
    background: #4CAF50;
}
.popup-ann-item .popup-badge.urgent {
    background: #F44336;
    animation: urgentPulse 1s ease-in-out infinite;
}
.popup-ann-item .popup-badge.maintenance {
    background: #FF9800;
}
.popup-ann-item h4 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 16px;
}
.popup-ann-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}
.popup-close-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'ZCOOL KuaiLe', sans-serif;
}
.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 143, 171, 0.4);
}

.announcement-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}
.ann-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--pink);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.ann-control-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--pink-deep);
}
.ann-control-btn:hover {
    background: var(--pink);
}
.ann-control-btn:hover svg {
    stroke: white;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ====== 头部区域 ====== */
.header {
    text-align: center;
    padding: 50px 30px 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,245,238,0.9));
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--mint), var(--pink-deep));
}
.header-icon {
    width: 64px; height: 64px;
    display: block;
    margin: 0 auto 15px;
    animation: bounce 2s ease-in-out infinite;
}
.header-icon-img {
    width: 64px; height: 64px;
    display: block;
    margin: 0 auto 15px;
    object-fit: contain;
    border-radius: 50%;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 143, 171, 0.3));
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.header h1 {
    font-size: 36px;
    color: var(--pink-deep);
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(255,183,197,0.3);
}
.header p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}
.header-deco {
    position: absolute;
    width: 24px; height: 24px;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}
.header-deco:nth-child(1) { top: 20px; left: 30px; animation-delay: 0s; }
.header-deco:nth-child(2) { top: 20px; right: 30px; animation-delay: 0.5s; }
.header-deco:nth-child(3) { bottom: 20px; left: 40px; animation-delay: 1s; }
.header-deco:nth-child(4) { bottom: 20px; right: 40px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(10deg); }
}

/* ====== 站点卡片列表 ====== */
.cards-title {
    text-align: center;
    font-size: 24px;
    color: var(--pink-deep);
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.3s both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.site-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    cursor: pointer;
    border: 2px solid transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.site-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}
.site-card:active {
    transform: translateY(-4px) scale(1.01);
}
.site-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.site-card:hover::after { transform: scaleX(1); }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.site-card:nth-child(1) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.2s; }
.site-card:nth-child(3) { animation-delay: 0.3s; }
.site-card:nth-child(4) { animation-delay: 0.4s; }
.site-card:nth-child(5) { animation-delay: 0.5s; }
.card-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    padding: 8px;
}
.card-icon svg {
    width: 100%;
    height: 100%;
}
.card-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
}
.card-title {
    font-size: 22px;
    color: var(--pink-deep);
    margin-bottom: 8px;
}
.card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.card-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f0f0;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: pulse 1.5s ease-in-out infinite;
}
.status-text {
    color: var(--text-light);
}
.latency-badge {
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f0f0;
    color: var(--text-light);
    font-weight: bold;
}
.status-active .status-dot {
    background: #4CAF50;
}
.status-active .status-text {
    color: #4CAF50;
}
.status-slow .status-dot {
    background: #FF9800;
}
.status-slow .status-text {
    color: #FF9800;
}
.status-error .status-dot {
    background: #F44336;
}
.status-error .status-text {
    color: #F44336;
}
.latency-fast {
    background: #E8F5E9;
    color: #4CAF50;
}
.latency-medium {
    background: #FFF3E0;
    color: #FF9800;
}
.latency-slow {
    background: #FFEBEE;
    color: #F44336;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.card-link {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 143, 171, 0.35);
    pointer-events: none;
    white-space: nowrap;
}
.card-link:hover {
    background: linear-gradient(135deg, var(--pink-deep), var(--purple));
    box-shadow: 0 6px 16px rgba(255, 143, 171, 0.5);
    transform: scale(1.05);
}
.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}
.card-actions .card-link {
    flex-shrink: 0;
    white-space: nowrap;
}
.card-hint {
    position: absolute;
    top: 12px; right: 12px;
    width: 24px; height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.site-card:hover .card-hint { opacity: 1; }

/* ====== 详情弹窗 ====== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(90, 61, 92, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-modal);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border: none;
    background: var(--pink-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close:hover {
    background: var(--pink);
    transform: rotate(90deg);
}
.modal-close svg {
    width: 16px; height: 16px;
    stroke: var(--text);
}
.modal-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    padding: 12px;
}
.modal-icon svg {
    width: 100%; height: 100%;
}
.modal-title {
    font-size: 28px;
    color: var(--pink-deep);
    text-align: center;
    margin-bottom: 12px;
}
.modal-desc {
    font-size: 15px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 24px;
}
.modal-details {
    background: var(--pink-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.modal-detail-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
}
.modal-detail-item:not(:last-child) {
    border-bottom: 1px dashed var(--pink);
}
.modal-detail-item svg {
    width: 18px; height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}
.modal-latency {
    font-weight: bold;
    font-size: 15px;
}
.modal-actions {
    display: flex;
    gap: 12px;
}
.modal-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.modal-btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 143, 171, 0.35);
}
.modal-btn-primary:hover {
    background: linear-gradient(135deg, var(--pink-deep), var(--purple));
    box-shadow: 0 6px 16px rgba(255, 143, 171, 0.5);
    transform: translateY(-2px);
}
.modal-btn-secondary {
    background: var(--pink-light);
    color: var(--pink-deep);
}
.modal-btn-secondary:hover {
    background: var(--pink);
    color: var(--white);
}

/* ====== 备用链接样式 ====== */
.backup-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}
.backup-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 8px;
    font-size: 13px;
}
.backup-link-item a {
    color: var(--pink-deep);
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}
.backup-link-item a:hover {
    text-decoration: underline;
}
.backup-link-item .copy-btn {
    background: var(--pink-light);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    color: var(--pink-deep);
    transition: all 0.3s;
}
.backup-link-item .copy-btn:hover {
    background: var(--pink);
    color: var(--white);
}

/* ====== 底部区域 ====== */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 1s ease-out 0.6s both;
}
.footer p {
    font-size: 14px;
    color: var(--text-light);
    margin: 8px 0;
    line-height: 1.8;
}
.footer .update-time {
    font-weight: bold;
    color: var(--pink-deep);
}
.footer a {
    color: var(--pink-deep);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--purple);
}
.footer .heart {
    color: var(--pink-deep);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}
.heart-icon {
    display: inline-block;
    width: 16px; height: 16px;
    vertical-align: middle;
    animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ====== 响应式设计 ====== */

/* 平板端 */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机端 */
@media (max-width: 640px) {
    html { font-size: 14px; }

    .container { padding: 24px 16px 40px; }

    .header {
        padding: 40px 20px 30px;
        margin-bottom: 30px;
        border-radius: 24px;
    }
    .header h1 { font-size: 28px; }
    .header-icon { width: 56px; height: 56px; }
    .header-deco { width: 20px; height: 20px; }

    .cards-title { font-size: 22px; margin-bottom: 24px; }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    .site-card {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .site-card:active {
        transform: scale(0.98);
    }
    .card-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .card-title { font-size: 20px; }
    .card-desc { font-size: 13px; margin-bottom: 16px; }
    .card-status { margin-bottom: 12px; }
    .card-link { padding: 10px 24px; font-size: 15px; }
    .card-info-btn { padding: 10px 24px; font-size: 15px; }

    .modal { padding: 28px 20px; }
    .modal-icon { width: 64px; height: 64px; }
    .modal-title { font-size: 24px; }
    .modal-desc { font-size: 14px; }
    .modal-actions { flex-direction: column; }
}

/* 小屏手机 */
@media (max-width: 360px) {
    html { font-size: 13px; }
    .container { padding: 16px 12px 32px; }
    .header { padding: 32px 16px 24px; }
    .site-card { padding: 20px 16px; }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .container { padding: 16px 24px; }
    .header { padding: 24px; margin-bottom: 20px; }
    .cards-grid { gap: 12px; }
    .site-card { padding: 16px; }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .site-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
        border-color: transparent;
    }
    .site-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-hover);
        border-color: var(--pink);
    }
    .card-hint { display: none; }
}

/* 高DPI屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-icon img, .modal-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --pink-light: #2D1F2F;
        --pink: #FFB7C5;
        --pink-deep: #FF8FAB;
        --purple-light: #2A2040;
        --purple: #DDA0DD;
        --mint: #98FF98;
        --cream: #2D1F2F;
        --text: #F5E6E8;
        --text-light: #C8A8B8;
        --white: #3A283C;
    }
    body {
        background: linear-gradient(135deg, #1A0F1C 0%, #2D1F2F 50%, #2A2040 100%);
    }
    .modal-overlay { background: rgba(26, 15, 28, 0.8); }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
