/* 现代化外链跳转页面样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

/* 背景动画 */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* 主容器 */
.redirect-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
}

/* 重定向卡片 */
.redirect-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* 卡片头部 */
.card-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.warning-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.warning-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.site-logo {
    max-width: 150px;
    max-height: 150px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 12px;
}

/* 卡片主体 */
.card-body {
    padding: 0 30px 20px;
}

.redirect-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
}

.redirect-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
}

.redirect-description strong {
    color: #2d3748;
    font-weight: 600;
}

/* URL显示区域 */
.url-display {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.url-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.url-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.external-link-href {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    word-break: break-all;
    line-height: 1.4;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

/* 安全提示 */
.security-tips {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef5e7;
    border: 1px solid #f6e05e;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.tip-icon {
    color: #d69e2e;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-text {
    font-size: 14px;
    color: #744210;
    line-height: 1.5;
}

/* 卡片底部 */
.card-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.countdown-container {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.countdown {
    font-weight: 600;
    color: #667eea;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .redirect-container {
        padding: 15px;
    }
    
    .redirect-card {
        max-width: 100%;
        margin: 0;
    }
    
    .card-header {
        padding: 25px 20px 15px;
    }
    
    .card-body {
        padding: 0 20px 15px;
    }
    
    .card-footer {
        padding: 15px 20px 25px;
    }
    
    .redirect-title {
        font-size: 20px;
    }
    
    .redirect-description {
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .url-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
        height: 44px;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .redirect-card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 20px 15px 10px;
    }
    
    .card-body {
        padding: 0 15px 10px;
    }
    
    .card-footer {
        padding: 10px 15px 20px;
    }
    
    .redirect-title {
        font-size: 18px;
    }
    
    .site-logo {
        max-width: 110px;
        max-height: 110px;
    }
    
    .warning-icon {
        width: 50px;
        height: 50px;
    }
    
    .warning-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .redirect-card {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
    }
    
    .redirect-title {
        color: #f7fafc;
    }
    
    .redirect-description {
        color: #cbd5e0;
    }
    
    .redirect-description strong {
        color: #f7fafc;
    }
    
    .url-display {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .url-label {
        color: #cbd5e0;
    }
    
    .external-link-href {
        background: #1a202c;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .security-tips {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .tip-text {
        color: #cbd5e0;
    }
    
    .card-footer {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .countdown-container {
        color: #cbd5e0;
    }
    
    .btn-secondary {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .btn-secondary:hover {
        background: #718096;
    }
}

/* 兼容旧版样式 */
.gitee-external-link-wrapper {
    display: none;
}

/* 显示新版样式 */
.modern-redirect-wrapper {
    display: block;
}