/* 太浩湖蓝色渐变主题 - 白色背景现代动感风格 */

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

:root {
    /* 太浩湖蓝色渐变配色 - 更鲜艳 */
    --tahoe-deep: #0A4A6B;
    --tahoe-medium: #1E6A8F;
    --tahoe-light: #4A9BD5;
    --tahoe-bright: #6BB6E8;
    --tahoe-pale: #87CEEB;
    --tahoe-sky: #B0E0E6;
    --tahoe-mist: #E0F4F5;
    
    /* 文字颜色 */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(10, 74, 107, 0.1);
    --shadow-md: 0 8px 24px rgba(10, 74, 107, 0.15);
    --shadow-lg: 0 16px 48px rgba(10, 74, 107, 0.2);
    --shadow-glow: 0 0 40px rgba(91, 155, 213, 0.3);
    
    /* 圆角 */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #ffffff;
}

/* 动态渐变背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(75, 182, 232, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(135, 206, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(27, 106, 143, 0.04) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(5deg);
    }
}

/* 流动的光效 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(107, 182, 232, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(135, 206, 235, 0.04) 0%, transparent 30%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.7;
    }
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

/* Hero 区域 */
.hero-section {
    text-align: center;
    width: 100%;
    max-width: 800px;
    animation: slideInDown 1s ease-out 0.2s both;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    position: relative;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #0A4A6B 0%, #1E6A8F 50%, #4A9BD5 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: gradientText 3s ease infinite, shimmer 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(10, 74, 107, 0.3));
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(10, 74, 107, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(10, 74, 107, 0.5));
    }
}

.title-main {
    display: block;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    to {
        text-shadow: 0 2px 20px rgba(10, 74, 107, 0.15);
    }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* API 端点输入区域 */
.api-endpoint-section {
    margin-bottom: 40px;
    animation: slideInUp 1s ease-out 0.6s both;
}

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

.endpoint-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(20px);
    gap: 6px;
    border: 2px solid rgba(30, 106, 143, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.endpoint-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91, 155, 213, 0.15), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.endpoint-input-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(91, 155, 213, 0.3);
    border-color: rgba(30, 106, 143, 0.2);
}

.endpoint-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 24px;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    transition: all 0.3s ease;
}

.endpoint-input:focus {
    color: var(--tahoe-medium);
}

.endpoint-select-wrapper {
    position: relative;
}

.endpoint-select {
    border: none;
    outline: none;
    padding: 18px 24px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(30, 106, 143, 0.08) 0%, rgba(75, 155, 213, 0.08) 100%);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231E6A8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: all 0.3s ease;
    position: relative;
}

.endpoint-select:hover {
    background: linear-gradient(135deg, rgba(30, 106, 143, 0.12) 0%, rgba(75, 155, 213, 0.12) 100%);
    transform: scale(1.02);
}

.endpoint-select:focus {
    background: linear-gradient(135deg, rgba(30, 106, 143, 0.15) 0%, rgba(75, 155, 213, 0.15) 100%);
}

.copy-button {
    border: none;
    background: linear-gradient(135deg, var(--tahoe-medium) 0%, var(--tahoe-light) 50%, var(--tahoe-bright) 100%);
    background-size: 200% 200%;
    color: var(--text-white);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.copy-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.copy-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(91, 155, 213, 0.5);
    background-position: 100% 0;
}

.copy-button:hover::before {
    width: 300px;
    height: 300px;
}

.copy-button:active {
    transform: translateY(-1px) scale(1.02);
}

.copy-button svg {
    stroke: currentColor;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.copy-button:hover svg {
    transform: rotate(15deg);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tahoe-light) 0%, var(--tahoe-bright) 50%, var(--tahoe-pale) 100%);
    background-size: 200% 200%;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(107, 182, 232, 0.5);
    background-position: 100% 0;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--tahoe-medium);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(30, 106, 143, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(30, 106, 143, 0.2);
    background: rgba(255, 255, 255, 1);
    border-color: var(--tahoe-medium);
}

.btn-secondary:hover::before {
    width: 400px;
    height: 400px;
    background: rgba(30, 106, 143, 0.1);
}

.btn svg {
    stroke: currentColor;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: scale(1.2);
}

/* 供应商区域 */
.providers-section {
    width: 100%;
    max-width: 1000px;
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.providers-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.provider-item {
    background: linear-gradient(135deg, rgba(30, 106, 143, 0.08) 0%, rgba(75, 155, 213, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(30, 106, 143, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out both;
    animation-delay: calc(var(--index, 0) * 0.05s);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.provider-logo {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.provider-item:hover .provider-logo {
    transform: scale(1.1);
}

.provider-fallback {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.provider-item:hover {
    background: linear-gradient(135deg, rgba(30, 106, 143, 0.15) 0%, rgba(75, 155, 213, 0.12) 100%);
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(91, 155, 213, 0.3);
    border-color: var(--tahoe-medium);
}

.provider-item:hover::before {
    left: 100%;
}

.providers-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tahoe-medium);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: countGlow 2s ease-in-out infinite alternate;
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, rgba(30, 106, 143, 0.1) 0%, rgba(75, 155, 213, 0.08) 100%);
    border-radius: var(--radius-md);
    border: 2px solid rgba(30, 106, 143, 0.2);
}

@keyframes countGlow {
    from {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        box-shadow: 0 0 20px rgba(30, 106, 143, 0.2);
    }
    to {
        text-shadow: 0 2px 20px rgba(30, 106, 143, 0.3);
        box-shadow: 0 0 40px rgba(30, 106, 143, 0.3);
    }
}

/* 页脚 */
.footer {
    text-align: center;
    padding-top: 80px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.footer p {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-credit {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer a {
    color: var(--tahoe-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tahoe-medium), var(--tahoe-light));
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--tahoe-light);
    transform: translateY(-2px);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px 30px;
    }
    
    .main-content {
        gap: 60px;
    }
    
    .endpoint-input-wrapper {
        flex-direction: column;
        padding: 8px;
    }
    
    .endpoint-input,
    .endpoint-select {
        width: 100%;
        padding: 14px 16px;
    }
    
    .endpoint-select {
        padding-right: 16px;
        background-position: right 12px center;
    }
    
    .copy-button {
        width: 100%;
        padding: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .providers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .provider-item {
        padding: 12px 16px;
        font-size: 0.85rem;
        min-height: 60px;
    }

    .provider-logo {
        max-height: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 复制成功提示动画 */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-radius: var(--radius-md);
    color: var(--tahoe-medium);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(91, 155, 213, 0.4);
    z-index: 1000;
    animation: fadeInOutBounce 2s ease;
    pointer-events: none;
    border: 2px solid rgba(30, 106, 143, 0.2);
}

@keyframes fadeInOutBounce {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10%, 90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    15% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
    }
}

