/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 莫兰迪色调 - 浅色主题 */
    --bg-primary: #dddac4;
    --bg-secondary: rgba(245, 243, 238, 0.85);
    --bg-glass: rgba(250, 248, 243, 0.75);
    --bg-gradient: linear-gradient(135deg, #dddac4 0%, #dddac4 50%, #dddac4 100%);
    --text-primary: #2b313f;
    --text-secondary: rgba(43, 49, 63, 0.7);
    --accent-blue: #7a8ca3;
    --accent-purple: #9a8fa8;
    --accent-pink: #c5a5a0;
    --accent-orange: #b8a28a;
    --border-color: #2b5a6c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-ios: 0 2px 10px rgba(0, 0, 0, 0.12);
    --success-color: #8faa90;
    --warning-color: #b8a28a;
    --error-color: #c5a5a0;
    --blur: blur(20px);
    --blur-light: blur(10px);
}

[data-theme="dark"] {
    /* 莫兰迪色调 - 深色主题 */
    --bg-primary: #1a1d23;
    --bg-secondary: rgba(30, 33, 39, 0.85);
    --bg-glass: rgba(35, 38, 44, 0.75);
    --bg-gradient: linear-gradient(135deg, #1a1d23 0%, #25282e 50%, #1a1d23 100%);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.85);
    --accent-blue: #7a8ca3;
    --accent-purple: #9a8fa8;
    --accent-pink: #c5a5a0;
    --accent-orange: #b8a28a;
    --border-color: #4a7a8c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-ios: 0 2px 10px rgba(0, 0, 0, 0.4);
    --success-color: #8faa90;
    --warning-color: #b8a28a;
    --error-color: #c5a5a0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 主内容包装器 */
.main-wrapper {
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 背景装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    overflow: hidden;
}

.card-suit {
    position: absolute;
    font-size: 200px;
    color: var(--accent-blue);
    animation: float 20s infinite ease-in-out;
    text-shadow: 0 0 30px rgba(122, 140, 163, 0.2);
}

.suit-spade {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.suit-heart {
    top: 20%;
    right: 5%;
    animation-delay: 5s;
    color: #ef4444;
}

.suit-diamond {
    bottom: 20%;
    left: 10%;
    animation-delay: 10s;
    color: #ef4444;
}

.suit-club {
    bottom: 10%;
    right: 10%;
    animation-delay: 15s;
}

/* 装饰性图标 */
.decorative-icon {
    position: absolute;
    font-size: 80px;
    opacity: 0.08;
    animation: iconFloat 15s infinite ease-in-out;
    filter: blur(1px);
}

.icon-dice {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.icon-chip {
    top: 60%;
    right: 20%;
    animation-delay: 5s;
    font-size: 100px;
}

.icon-card {
    bottom: 25%;
    left: 25%;
    animation-delay: 10s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 20px) rotate(270deg);
    }
}

/* 添加装饰性图案 */
.background-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg) scale(1.1);
        opacity: 0.25;
    }
}

/* 头部样式 - iOS风格 */
.header {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-ios);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2b5a6c;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    width: 100%;
    justify-content: space-between;
}

.logo-icon {
    width: 250px;
    height: 250px;
    min-width: 250px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 8px 30px rgba(90, 88, 83, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    margin: -80px 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-text {
    font-size: 48px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 5px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 4px;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0.5px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle-btn .icon {
    font-size: 20px;
    line-height: 1;
}

.theme-toggle-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 公告区域 - iOS风格 */
.announcement-section {
    position: relative;
    z-index: 10;
    padding: 16px 0;
    background: transparent;
    border-bottom: 0.5px solid var(--border-color);
    display: none; /* 默认隐藏，可通过JavaScript控制显示 */
}

.announcement-section.show {
    display: block;
}

.announcement-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #2b5a6c;
    box-shadow: var(--shadow-ios);
    position: relative;
}

.announcement-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.6);
    }
}

.announcement-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.announcement-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.announcement-text {
    font-size: 14px;
    color: #2b313f;
    line-height: 1.6;
    word-break: break-word;
}

[data-theme="dark"] .announcement-text {
    color: #f5f5f7;
}

.announcement-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.announcement-close:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: rotate(90deg);
}

/* 主内容区 */
.main-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

/* 服务区块 - iOS风格卡片 */
.service-section {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-ios);
    border: 1px solid #2b5a6c;
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
    margin-left: auto;
}

/* 视讯URL包装器 */
.video-urls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* URL行 */
.urls-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

/* URL容器 */
.urls-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.url-item {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #2b5a6c;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.url-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-blue);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.url-item:hover::before {
    transform: scaleY(1);
}

.url-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-purple);
    background: var(--bg-secondary);
}

.url-item.priority {
    border-color: var(--accent-purple);
    background: var(--bg-secondary);
}

.url-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.url-name {
    font-size: 18px;
    font-weight: 600;
    color: #2b313f;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .url-name {
    color: #f5f5f7;
}

.url-name .priority-badge {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.url-latency {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: #2b313f;
    opacity: 1;
}

.url-latency.excellent {
    color: #2e7d32;
    font-weight: 700;
}

.url-latency.good {
    color: #558b2f;
    font-weight: 700;
}

.url-latency.normal {
    color: #f57c00;
    font-weight: 700;
}

.url-latency.slow {
    color: #d32f2f;
    font-weight: 700;
}

/* 暗色模式下测速字体颜色增强 */
[data-theme="dark"] .url-latency {
    color: #f5f5f7;
    background: rgba(245, 245, 247, 0.1);
}

[data-theme="dark"] .url-latency.excellent {
    color: #81c784;
    font-weight: 700;
}

[data-theme="dark"] .url-latency.good {
    color: #aed581;
    font-weight: 700;
}

[data-theme="dark"] .url-latency.normal {
    color: #ffb74d;
    font-weight: 700;
}

[data-theme="dark"] .url-latency.slow {
    color: #e57373;
    font-weight: 700;
}

.url-latency .loading {
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.url-description {
    font-size: 13px;
    color: #2b313f;
    margin-top: 8px;
    opacity: 0.8;
}

[data-theme="dark"] .url-description {
    color: #f5f5f7;
    opacity: 0.9;
}

/* 二维码容器 */
.qr-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.qr-item {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid #2b5a6c;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.qr-code {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.qr-code canvas,
.qr-code img {
    max-width: 100%;
    height: auto;
    display: block;
}

.qr-name {
    font-size: 16px;
    font-weight: 600;
    color: #2b313f;
    margin-bottom: 5px;
}

[data-theme="dark"] .qr-name {
    color: #f5f5f7;
}

.qr-description {
    font-size: 12px;
    color: #2b313f;
    opacity: 0.8;
}

[data-theme="dark"] .qr-description {
    color: #f5f5f7;
    opacity: 0.9;
}

/* 其他服务 */
.other-services {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--accent-blue);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.service-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.service-btn .icon {
    font-size: 20px;
    line-height: 1;
}

/* 底部 - iOS风格 */
.footer {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 32px 0;
    margin-top: 40px;
    border-top: 0.5px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.welcome-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-info .icon {
    color: var(--accent-gold);
}

.copyright {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 在移动端隐藏电话网址区域 */
    .phone-section {
        display: none !important;
    }
    .header-banner {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .logo-icon {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
    }

    .logo-text {
        font-size: 32px;
    }
    
    .logo-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .logo-section {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .section-title {
        font-size: 20px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .section-subtitle {
        display: none;
    }

    .urls-container {
        grid-template-columns: 1fr;
    }
    
    .video-urls-wrapper {
        gap: 16px;
    }
    
    .urls-row {
        gap: 10px;
    }
    
    .row-label {
        font-size: 14px;
        padding: 6px 0;
    }

    .qr-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .qr-item {
        padding: 20px 15px;
    }
    
    .qr-code {
        max-width: 120px;
        padding: 8px;
    }
    
    .qr-name {
        font-size: 14px;
    }
    
    .qr-description {
        font-size: 11px;
    }
    
    .announcement-section {
        padding: 12px 0;
    }
    
    .announcement-box {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .announcement-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }
    
    .announcement-title {
        font-size: 16px;
    }
    
    .announcement-text {
        font-size: 13px;
    }
    
    .announcement-close {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    @media (max-width: 480px) {
        .qr-container {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .qr-item {
            padding: 25px;
        }
        
        .qr-code {
            max-width: 160px;
        }
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* 登录界面 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-box {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 20px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--border-color);
    animation: loginSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow-md);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.6);
    }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-group label .icon {
    color: var(--accent-gold);
    width: 18px;
    display: inline-block;
    text-align: center;
}

.icon {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 17px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 45px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-gold);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: var(--error-color);
    font-size: 14px;
    text-align: center;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-form.shake {
    animation: shake 0.5s ease-in-out;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
    -webkit-tap-highlight-color: transparent;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn .icon {
    font-size: 18px;
    line-height: 1;
}

/* 响应式 - 登录界面 */
@media (max-width: 768px) {
    .login-box {
        padding: 40px 30px;
        max-width: 100%;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .login-title {
        font-size: 24px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* APP下载模态框 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-modal.show {
    display: flex;
}

.download-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.download-modal-content {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.download-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
}

.download-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.download-modal-title .icon {
    font-size: 28px;
}

.download-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
}

.download-modal-close:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: rotate(90deg);
}

.download-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.download-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-section-title:first-child {
    margin-top: 0;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid #2b5a6c;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.download-item-with-qr {
    /* 带二维码的APP项 */
}

.download-item-no-qr {
    /* 不带二维码的PC版APP项 */
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-item:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    background: var(--bg-secondary);
}

.download-item-icon {
    font-size: 36px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.download-item-info {
    flex: 1;
    min-width: 0;
}

.download-item-name {
    font-size: 18px;
    font-weight: 600;
    color: #2b313f;
    margin-bottom: 5px;
}

[data-theme="dark"] .download-item-name {
    color: #f5f5f7;
}

.download-item-description {
    font-size: 14px;
    color: #2b313f;
    opacity: 0.8;
}

[data-theme="dark"] .download-item-description {
    color: #f5f5f7;
    opacity: 0.9;
}

.download-item-qr {
    width: 120px;
    height: 120px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-item-qr canvas {
    max-width: 100%;
    max-height: 100%;
}

.download-item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.download-btn {
    padding: 10px 20px;
    background: var(--accent-blue);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--accent-purple);
    opacity: 0.9;
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn .icon {
    font-size: 16px;
}

.download-qr-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.download-qr-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

/* 下载二维码覆盖层 */
.download-qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.download-qr-content {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--border-color);
    animation: qrSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes qrSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.download-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.download-qr-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-qr-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 0;
}

.download-qr-close:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: rotate(90deg);
}

.download-qr-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.download-qr-code-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.download-qr-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.download-qr-url {
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    text-align: center;
    max-width: 100%;
}

.download-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* 响应式 - 下载模态框 */
@media (max-width: 768px) {
    .download-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .download-modal-header {
        padding: 20px;
    }
    
    .download-modal-title {
        font-size: 20px;
    }
    
    .download-modal-body {
        padding: 20px;
        max-height: calc(95vh - 90px);
    }
    
    .download-item {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .download-item-icon {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
    
    .download-item-qr {
        width: 100px;
        height: 100px;
        padding: 6px;
    }
    
    .download-item-actions {
        width: 100%;
        margin-top: 10px;
    }
    
    .download-btn {
        flex: 1;
        justify-content: center;
    }
    
    /* 移动端隐藏PC版本APP */
    .download-item-no-qr {
        display: none !important;
    }
}
