/* 猫家花园服务器 - 可爱华丽主题样式 */

/* ==================== 全局变量 ==================== */
:root {
    /* 主题色 - 蓝白清新 */
    --primary-color: #4A90E2;
    --primary-light: #7CB3F5;
    --primary-dark: #2E5C8A;
    --secondary-color: #5FC3E4;
    --secondary-light: #E8F4F8;
    --accent-color: #87CEEB;
    
    /* 背景色 */
    --bg-primary: #F0F8FF;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-hover: rgba(74, 144, 226, 0.1);
    
    /* 文字色 */
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #95a5a6;
    --text-white: #ffffff;
    
    /* 边框和阴影 */
    --border-radius: 20px;
    --border-radius-small: 12px;
    --shadow-small: 0 2px 10px rgba(74, 144, 226, 0.1);
    --shadow-medium: 0 4px 20px rgba(74, 144, 226, 0.15);
    --shadow-large: 0 8px 30px rgba(74, 144, 226, 0.2);
    --shadow-glow: 0 0 30px rgba(74, 144, 226, 0.3);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    --gradient-secondary: linear-gradient(135deg, #5FC3E4 0%, #87CEEB 100%);
    --gradient-card: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(95, 195, 228, 0.05) 100%);
    --gradient-vip: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-mvp: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    --gradient-legend: linear-gradient(135deg, #5FC3E4 0%, #4A90E2 100%);
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景辉光效果 */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.glow-circle:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.glow-circle:nth-child(2) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95, 195, 228, 0.3) 0%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-logo i {
    font-size: 28px;
    animation: paw-wave 2s ease-in-out infinite;
}

@keyframes paw-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.navbar-logo:hover {
    transform: scale(1.05);
    text-shadow: var(--shadow-glow);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.navbar-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-item a:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-item a i {
    font-size: 16px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

h1::after {
    content: '🐾';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
}

/* ==================== 卡片系统 ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-light);
}

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

.card > * {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-small);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-content p {
    margin-bottom: 15px;
}

.card-content ul {
    list-style: none;
    padding-left: 0;
}

.card-content li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.card-content li::before {
    content: '🐾';
    position: absolute;
    left: 0;
    top: 8px;
}

.card-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-small);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-small);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== VIP等级卡片 ==================== */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.vip-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary-light), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vip-card:hover::before {
    opacity: 0.1;
}

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

.vip-card.default {
    border-color: #dfe6e9;
}

.vip-card.vip {
    border-image: var(--gradient-vip);
    border-image-slice: 1;
}

.vip-card.mvp {
    border-image: var(--gradient-mvp);
    border-image-slice: 1;
}

.vip-card.legend {
    border-image: var(--gradient-legend);
    border-image-slice: 1;
}

.vip-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.vip-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.vip-badge.default {
    background: linear-gradient(135deg, #b2bec3 0%, #dfe6e9 100%);
}

.vip-badge.vip {
    background: var(--gradient-vip);
}

.vip-badge.mvp {
    background: var(--gradient-mvp);
}

.vip-badge.legend {
    background: var(--gradient-legend);
}

.vip-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.vip-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.vip-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

/* ==================== 表格 ==================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

thead {
    background: var(--gradient-primary);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--secondary-light);
}

tr:hover {
    background: var(--bg-hover);
}

tr:last-child td {
    border-bottom: none;
}

/* ==================== 模组卡片 ==================== */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.mod-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-light);
}

.mod-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--gradient-card);
}

.mod-content {
    padding: 20px;
}

.mod-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.mod-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mod-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.mod-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-card);
    margin-top: 80px;
    padding: 40px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .card {
        padding: 20px;
    }
    
    .vip-grid,
    .mod-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ==================== 工具类 ==================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* ==================== 徽章和标签 ==================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-primary {
    background: var(--primary-color);
}

.badge-secondary {
    background: var(--secondary-color);
}

.badge-success {
    background: #00b894;
}

.badge-warning {
    background: #fdcb6e;
}

.badge-info {
    background: #74b9ff;
}

/* ==================== 分隔线 ==================== */
.divider {
    height: 2px;
    background: var(--gradient-primary);
    margin: 40px 0;
    border-radius: 2px;
}

/* ==================== 加载动画 ==================== */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
