/**
 * Vercel反向代理 - 现代化样式文件
 * 版本: 3.0.0 (美化专业版)
 *
 * 包含所有页面样式：
 * - 现代化基础样式
 * - Flexbox布局系统
 * - 专业UI组件
 * - 安全提示样式
 * - 消息和通知样式
 * - 响应式设计
 * - 动画和过渡效果
 */

/* ==========================================================================
   基础重置样式
   ========================================================================== */

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ==========================================================================
   主容器布局系统
   ========================================================================== */

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-container {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-header-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    max-width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.content-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   标题样式
   ========================================================================== */

h1.splash {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

h1.splash strong {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.page-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
    white-space: nowrap;
}

/* ==========================================================================
   代理输入表单样式
   ========================================================================== */

.proxy-input-form {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.url-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.1rem;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.url-input::placeholder {
    color: #95a5a6;
    font-weight: 300;
}

.url-input:focus {
    background: #f8f9fa;
    outline: none;
}

.proxy-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.proxy-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.proxy-button:active {
    transform: translateY(0);
}

.proxy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   安全保障区域样式
   ========================================================================== */

.security-section {
    margin-bottom: 2rem;
}

.security-notice {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.security-icon {
    font-size: 1.2rem;
}

.security-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.security-features {
    display: grid;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.feature-item a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
}

.feature-item a:hover {
    text-decoration: underline;
}

.security-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.9;
}

.details-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.toggle-section {
    margin-top: 1rem;
    text-align: center;
}

.toggle-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-link:hover {
    text-decoration: underline;
    color: #ffed4e;
}

/* ==========================================================================
   风险警告区域样式
   ========================================================================== */

.risk-warning-section {
    margin-bottom: 2rem;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.risk-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   使用指南区域样式
   ========================================================================== */

.usage-guide-section {
    margin-bottom: 2rem;
}

.guide-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guide-icon {
    font-size: 1.2rem;
    color: #3498db;
}

.guide-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.guide-content {
    display: grid;
    gap: 1rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
}

.url-example {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #2c3e50;
}

.test-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.test-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ==========================================================================
   支持域名列表区域样式
   ========================================================================== */

.domains-section {
    margin-bottom: 2rem;
}

.domains-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.domains-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.domains-icon {
    font-size: 1.2rem;
    color: #3498db;
}

.domains-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.domains-list {
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #495057;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.domains-list div {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.domains-list div:last-child {
    border-bottom: none;
}

.domains-toggle {
    text-align: center;
}

.domains-toggle .toggle-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.domains-toggle .toggle-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ==========================================================================
   消息和通知样式
   ========================================================================== */

.message-container {
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    display: none;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: messageSlideIn 0.3s ease-out;
}

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

.message-container::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 2rem;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.8;
}

.message-content {
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-description {
    opacity: 0.9;
    font-size: 0.95rem;
}

.error-message {
    color: #ffffff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: rgba(231, 76, 60, 0.3);
}

.success-message {
    color: #ffffff;
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: rgba(39, 174, 96, 0.3);
}

.warning-message {
    color: #ffffff;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: rgba(243, 156, 18, 0.3);
}

.info-message {
    color: #ffffff;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: rgba(52, 152, 219, 0.3);
}

.message-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ==========================================================================
   加载状态样式
   ========================================================================== */

#loading-indicator {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-size: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e3f2fd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
}

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

/* ==========================================================================
   输入提示样式
   ========================================================================== */

#input-hint {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    display: none;
}

/* ==========================================================================
   页脚样式
   ========================================================================== */

.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

.footer a {
    margin: 0 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   通用链接样式
   ========================================================================== */

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:visited {
    color: #2980b9;
}

a:hover {
    color: #1f5f8b;
    text-decoration: underline;
}

/* ==========================================================================
   动画和过渡效果
   ========================================================================== */

.main-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-container > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.content-container > *:nth-child(1) { animation-delay: 0.1s; }
.content-container > *:nth-child(2) { animation-delay: 0.2s; }
.content-container > *:nth-child(3) { animation-delay: 0.3s; }
.content-container > *:nth-child(4) { animation-delay: 0.4s; }
.content-container > *:nth-child(5) { animation-delay: 0.5s; }

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

@media (max-width: 768px) {
    .main-container {
        padding: 1rem 0.5rem;
    }

    .page-header-container {
        padding: 1.25rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    h1.splash {
        font-size: 2rem;
        white-space: normal;
    }

    .page-description {
        font-size: 0.9rem;
        white-space: normal;
    }

    .content-container {
        padding: 2rem 1.5rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .url-input {
        border-radius: 12px 12px 0 0;
    }

    .proxy-button {
        border-radius: 0 0 12px 12px;
        padding: 1rem;
    }

    .guide-content,
    .security-features {
        gap: 0.5rem;
    }

    .guide-item,
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem;
    }

    .page-header-container {
        padding: 1rem;
    }

    .header-content {
        gap: 0.5rem;
    }

    h1.splash {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .page-description {
        font-size: 0.85rem;
    }

    .content-container {
        padding: 1.5rem 1rem;
    }

    .url-input,
    .proxy-button {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .guide-container,
    .domains-container,
    .security-notice {
        padding: 1rem;
    }
}
