:root {
    --primary-color: #0052d9;
    --primary-dark: #0039a6;
    --primary-light: #4d7cff;
    --secondary-color: #2c3e50;
    --accent-color: #00c6ff;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e6f0ff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 32px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    line-height: 1.5;
}

/* 内容区域样式 */
.content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a202c 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

/* iframe容器样式 */
.iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f9f9f9;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 加载提示样式 */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 82, 217, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 20px;
}

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

/* 控制按钮样式 */
.controls {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 217, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 82, 217, 0.2);
}

/* 页脚样式 */
.footer {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer a:hover {
    color: var(--primary-dark);
}

.footer a:hover::after {
    width: 100%;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success-color);
}

@keyframes pulse {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .container {
        gap: 20px;
    }
    
    .header {
        padding: 20px 25px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .iframe-container {
        height: 500px;
    }
    
    .card-body {
        padding: 20px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        gap: 15px;
    }
    
    .header {
        padding: 20px;
        border-radius: 12px;
    }
    
    .logo {
        margin-bottom: 12px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .header h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .card-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-header h2 {
        font-size: 18px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .iframe-container {
        height: 400px;
        border-radius: 8px;
    }
    
    .controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
    }
    
    .footer {
        padding: 15px;
        font-size: 13px;
    }
    
    .status-indicator {
        align-self: flex-start;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .header p {
        font-size: 13px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .iframe-container {
        height: 350px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .footer {
        padding: 12px;
        font-size: 12px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .iframe-container {
        height: 300px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .footer {
        padding: 10px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a202c;
        --card-bg: #2d3748;
        --text-dark: #e2e8f0;
        --text-light: #a0aec0;
        --border-color: #4a5568;
    }
    
    .iframe-container {
        background: #2d3748;
    }
    
    .loading {
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.98) 0%, rgba(26, 32, 44, 0.98) 100%);
        color: var(--text-dark);
    }
}