/* 基础变量定义 */
:root {
    /* 浅色模式颜色 */
    --primary: #d23669;
    --secondary: #ff758c;
    --accent: #7f7fd5;
    --text: #5a2a3e;
    --bg: #fff9fb;
    --card-bg: rgba(255, 255, 255, 0.95);
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #E91E63;
    --info: #2196F3;
    --gradient: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    --repo-bg: rgba(255, 255, 255, 0.8);
    --repo-border: var(--primary);
    --repo-text: var(--text);
}

/* 暗色模式颜色 */
[data-theme="dark"] {
    --primary: #ff6b9e;
    --secondary: #ff8da1;
    --accent: #9d9dff;
    --text: #f8f9fa;
    --bg: #1a1a1a;
    --card-bg: rgba(40, 40, 40, 0.95);
    --success: #66BB6A;
    --warning: #FFA726;
    --danger: #F48FB1;
    --info: #81D4FA;
    --gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    --repo-bg: rgba(60, 60, 60, 0.8);
    --repo-border: var(--accent);
    --repo-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: var(--gradient);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s ease-out;
}

.container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: -1;
}

[data-theme="dark"] .container::before {
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
}

header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo i {
    font-size: 2.5rem;
    color: white;
}

h1, h2, h3 {
    color: var(--primary);
    margin: 1.5rem 0;
    font-weight: 700;
    position: relative;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--text);
}

.divider {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 2rem auto;
    width: 80%;
    max-width: 400px;
    border-radius: 3px;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--primary);
    background: rgba(210, 54, 105, 0.1);
}

.nav-link:hover {
    background: rgba(210, 54, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-link i {
    font-size: 1.1rem;
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(1px);
}

.btn i {
    font-size: 1.3rem;
}

.zebra-btn { background: linear-gradient(135deg, var(--success), #8BC34A); }
.saily-btn { background: linear-gradient(135deg, var(--warning), #FF9800); }
.sileo-btn { background: linear-gradient(135deg, var(--danger), #E91E63); }
.qq-btn { background: linear-gradient(135deg, var(--info), #03A9F4); }
.cloud-btn { background: linear-gradient(135deg, var(--accent), #86a8e7); }
.resource-btn { background: linear-gradient(135deg, #FF9800, #FFC107); }
.test-btn { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.repo-container {
    position: relative;
    margin: 1.5rem auto;
    max-width: 600px;
}

.repo-url {
    background: var(--repo-bg);
    color: var(--repo-text);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    word-break: break-all;
    border: 1px dashed var(--repo-border);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.repo-url:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copy-hint {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.repo-url:hover .copy-hint {
    opacity: 1;
    transform: translateY(0);
}

.copied-text {
    color: var(--success) !important;
    font-weight: bold;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.qq-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 100;
    border: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

/* 动画效果 */
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

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

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .btn-group {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .repo-url {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.2rem;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    
    .btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .nav-link {
        flex: 1 0 calc(50% - 0.5rem);
        justify-content: center;
        text-align: center;
    }

    .repo-url {
        font-size: 0.85rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
}