:root {
    --primary-color: #2196F3;
    --secondary-color: #03A9F4;
    --accent-color: #00BCD4;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --gradient-bg: linear-gradient(135deg, #0c2646 0%, #204065 50%, #2a5788 100%);
    --primary-color-rgb: 33, 150, 243;
}

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

body {
    min-height: 100vh;
    margin: 0;
    background: var(--gradient-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: 'Arial', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.header {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 卡片头部样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.card-header h2 {
    margin: 0;
    flex: 1;
}

/* 调整intro-card中的音频按钮样式 */
.intro-card .audio-control-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
}

.intro-card .audio-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 音频按钮通用样式 */
.audio-control-btn.audio-playing {
    animation: audio-pulse 2s infinite;
}

@keyframes audio-pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 10px rgba(155, 89, 182, 0.6), 0 0 20px rgba(155, 89, 182, 0.3);
    }
}

.audio-control-btn i {
    transition: all 0.3s ease;
}

.user-center-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-center-btn i {
    margin-right: 5px;
}

.user-center-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* 为不支持backdrop-filter的浏览器提供备选样式 */
@supports not (backdrop-filter: blur(10px)) {
    .container {
        background: rgba(12, 38, 70, 0.7);
    }
}

.container::before {
    display: none;
}

h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.server-status {
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-start;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    flex-direction: column;
    flex: 1;
    height: auto;
    min-height: 200px;
    max-height: 500px;
}

.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 1;
}

.status-card .motd-container {
    min-height: unset;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.status-card h2 {
    margin-bottom: 10px;
}

.motd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.motd-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    color: var(--accent-color);
}

.motd-address {
    font-size: 1rem;
    margin: 3px 0 10px 0;
    color: rgba(255, 255, 255, 0.7);
}

.motd-version {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.motd-button {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.motd-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.server-selectors {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.motd-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.motd-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.motd-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.motd-info-item i {
    margin-right: 15px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.motd-container {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    border: none;
    display: flex;
    flex-direction: column;
    color: white;
}

.motd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.motd-loading i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.motd-error {
    color: #ff5252;
    text-align: center;
    margin-top: 10px;
}

.motd-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.motd-online {
    background-color: #4CAF50;
}

.motd-offline {
    background-color: #ff5252;
}

.action-button {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 30px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.action-button:hover::before {
    left: 100%;
}

.action-button i {
    margin-right: 10px;
}

.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    backdrop-filter: blur(10px);
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        width: 95%;
        padding: 20px;
    }
    
    .action-button {
        width: 100%;
        font-size: 1rem;
    }
    
    /* 手机访问时标题左对齐 */
    .header {
        justify-content: flex-start;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .server-status iframe {
        height: 240px;
    }
}

.server-selectors {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.server-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.server-selector:hover, .server-selector.active {
    background: rgba(255, 255, 255, 0.2);
}

.server-selector.active {
    border-color: var(--accent-color);
}

/* 服务器选择对话框样式 */
.server-select-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.server-select-content {
    background-color: rgba(20, 50, 80, 0.95);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.server-select-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-select-header h3 {
    margin: 0;
    color: white;
}

.close-dialog {
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-dialog:hover {
    color: var(--accent-color);
}

.server-select-body {
    padding: 20px;
    color: white;
}

.server-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.server-option {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.server-option.recommended {
    background-color: rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.server-option-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.server-option-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.server-option-delay {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin-top: 3px;
}

.recommended-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.server-option.offline {
    opacity: 0.7;
    border-color: rgba(255, 77, 77, 0.3);
}

.server-option-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 5px;
}

.server-option-status.online {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.server-option-status.offline {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* 快速操作按钮样式 */
.quick-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.quick-action-button {
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quick-action-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

.quick-action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.download-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.qq-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

@media (max-width: 480px) {
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-action-button {
        width: 100%;
    }
}

/* 版本选择对话框 */
.download-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.download-dialog-content {
    background-color: rgba(20, 50, 80, 0.95);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.download-dialog-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.download-dialog-header h3 {
    margin: 0;
    color: white;
}

.download-dialog-body {
    padding: 20px;
    color: white;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 60px); /* 减去header的高度 */
    -webkit-overflow-scrolling: touch; /* 提高移动设备上的滚动体验 */
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-intro {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
}

.download-links-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.platform-selector {
    display: flex;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.platform-btn {
    background: none;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-btn:last-child {
    border-right: none;
}

.platform-btn i {
    font-size: 1.2em;
}

.platform-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.platform-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    font-weight: 500;
}

.download-platform-info {
    margin-bottom: 20px;
}

.platform-info-card {
    display: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
    position: relative;
}

.platform-info-card.active {
    display: block;
}

.platform-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.platform-icon-large {
    font-size: 35px;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.platform-name {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.platform-version {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.platform-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.95em;
}

.download-links-container {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-align: center;
    font-size: 1.1em;
}

.download-links {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.download-links.active {
    display: flex;
}

.download-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.download-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .platform-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .recommended-badge {
        margin: 0;
        top: -10px;
        right: -5px;
    }
    
    .platform-btn {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .platform-btn i {
        margin-right: 0;
    }
    
    .platform-btn span {
        display: none;
    }
}

.server-gallery {
    margin-top: 30px;
    margin-bottom: 30px;
}

.server-gallery h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.server-gallery h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 2;
}

.gallery-nav {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.gallery-nav:hover {
    background-color: rgba(var(--primary-color-rgb), 0.7);
    transform: scale(1.1);
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background-color: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gallery-container {
        height: 220px;
    }
}

/* 移动设备横屏时 */
@media (max-width: 768px) and (orientation: landscape) {
    .gallery-container {
        height: 180px;
    }
}

/* 灯箱效果 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.lightbox-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.lightbox-nav {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background-color: rgba(var(--primary-color-rgb), 0.7);
    transform: scale(1.1);
}

.lightbox-prev {
    margin-right: auto;
}

.lightbox-next {
    margin-left: auto;
}

@media (max-width: 768px) {
    .lightbox-nav {
        height: 40px;
        width: 40px;
        font-size: 16px;
    }
}

/* 新的卡片布局样式 */
.cards-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    overflow: hidden;
    flex: 1 1 400px;
    min-width: 0;
}

/* 为不支持backdrop-filter的浏览器提供备选样式 */
@supports not (backdrop-filter: blur(10px)) {
    .card {
        background: rgba(12, 38, 70, 0.7);
    }
}

.intro-card {
    flex: 1 1 500px;
}

.status-card {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
}

.motd-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.motd-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

@media (max-width: 900px) {
    .cards-container {
        flex-direction: column;
    }
    
    .card {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .status-card {
        margin-top: 0;
    }
    
    .server-status {
        height: auto;
        min-height: 200px;
    }
}

.mac-notice {
    background-color: rgba(13, 36, 54, 0.7);
    border: 1px solid #ffb700;
    color: #ffb700;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mac-notice i {
    font-size: 1.5em;
    color: #ffb700;
    flex-shrink: 0;
    background: rgba(255, 183, 0, 0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mac-notice .tool-link {
    color: #a287e0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0 5px;
}

.mac-notice .tool-link:hover {
    color: #b39ddb;
    text-decoration: underline;
}

/* 防止下载对话框滚动影响背景 */
body.dialog-open {
    overflow: hidden;
}

.platform-desc .mac-install-tip {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.platform-desc .mac-install-tip i {
    color: #3498db;
    margin-right: 8px;
}

.platform-desc .mac-install-tip strong {
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.platform-desc .mac-install-tip .steps {
    margin-top: 10px;
    padding-left: 20px;
}

.platform-desc .mac-install-tip .step {
    margin-bottom: 5px;
}

.platform-desc .mac-install-tip .tool-link {
    color: #a287e0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0 2px;
}

.platform-desc .mac-install-tip .tool-link:hover {
    color: #b39ddb;
    text-decoration: underline;
}

/* 加载动画样式 */
body.loading {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100vw !important;
}

#loading-screen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--gradient-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    will-change: opacity, visibility; /* 优化动画性能 */
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.loading-text {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    position: relative;
}

.loading-letter {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 10px;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease;
    will-change: transform, text-shadow; /* 告诉浏览器这些属性会改变 */
    transform: translateZ(0); /* 触发硬件加速 */
}

.loading-letter.glow {
    color: #2196F3;
    background: none;
    -webkit-text-fill-color: #2196F3;
    text-shadow: 
        0 0 20px rgba(33, 150, 243, 0.8),
        0 0 40px rgba(33, 150, 243, 0.6),
        0 0 60px rgba(33, 150, 243, 0.4),
        0 0 80px rgba(33, 150, 243, 0.2);
    transform: scale(1.1);
}

.loading-text {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    position: relative;
}

/* 文字发光扫过效果 */
@keyframes text-sweep-glow {
    0%, 100% {
        background: linear-gradient(to right, var(--accent-color), var(--primary-color));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
        transform: scale(1);
    }
    50% {
        background: none;
        -webkit-text-fill-color: #2196F3;
        color: #2196F3;
        text-shadow: 
            0 0 20px rgba(33, 150, 243, 0.8),
            0 0 40px rgba(33, 150, 243, 0.6),
            0 0 60px rgba(33, 150, 243, 0.4),
            0 0 80px rgba(33, 150, 243, 0.2);
        transform: scale(1.1);
    }
}

@keyframes final-glow {
    0% {
        background: linear-gradient(to right, var(--accent-color), var(--primary-color));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
        transform: scale(1);
        opacity: 1;
    }
    70% {
        background: none;
        -webkit-text-fill-color: #2196F3;
        color: #2196F3;
        text-shadow: 
            0 0 20px rgba(33, 150, 243, 0.8),
            0 0 40px rgba(33, 150, 243, 0.6),
            0 0 60px rgba(33, 150, 243, 0.4),
            0 0 80px rgba(33, 150, 243, 0.2);
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        background: none;
        -webkit-text-fill-color: #2196F3;
        color: #2196F3;
        text-shadow: 
            0 0 30px rgba(33, 150, 243, 0.9),
            0 0 60px rgba(33, 150, 243, 0.7),
            0 0 90px rgba(33, 150, 243, 0.5),
            0 0 120px rgba(33, 150, 243, 0.3);
        transform: scale(2);
        opacity: 0;
    }
}

/* 为每个字母设置不同的动画延迟，以实现扫过效果 */
.loading-letter:nth-child(1) {
    animation: text-sweep-glow 1.5s infinite;
    animation-delay: 0s;
}

.loading-letter:nth-child(2) {
    animation: text-sweep-glow 1.5s infinite;
    animation-delay: 0.15s;
}

.loading-letter:nth-child(3) {
    animation: text-sweep-glow 1.5s infinite;
    animation-delay: 0.3s;
}

.loading-letter:nth-child(4) {
    animation: text-sweep-glow 1.5s infinite;
    animation-delay: 0.45s;
}

.loading-letter:nth-child(5) {
    animation: text-sweep-glow 1.5s infinite;
    animation-delay: 0.6s;
}

.server-note {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.server-note i {
    margin-right: 8px;
}

.server-option-note {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.server-option-note i {
    margin-right: 5px;
}

/* 添加海外徽章样式 */
.overseas-badge {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 懒加载图片样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.1);
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.lazy-image.loaded::before {
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 加载进度条样式 */
.loading-progress {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

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

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

.loading-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 音频错误提示动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 响应式设计 - 卡片头部 */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-header h2 {
        font-size: 1.3rem;
    }
    
    .intro-card .audio-control-btn {
        align-self: flex-end;
        position: absolute;
        top: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .intro-card .audio-control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
