/* ============================================
   老七博客 - 现代化设计系统
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 渐变紫蓝 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;

    /* 文字颜色 */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;

    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;

    /* 阴影系统 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* 圆角系统 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* 间距系统 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;

    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 基础样式 */
html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 50%, rgba(240, 147, 251, 0.03) 100%),
        linear-gradient(to bottom, #f8fafc, #f1f5f9);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding: var(--space-xl);
    line-height: 1.7;
    transition: all var(--transition-base);
    position: relative;
}

/* 动态背景粒子 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* 主容器 */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-md);
    animation: fadeInUp 0.8s ease;
}

.container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* 顶部渐变装饰条 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* 标题样式 - 重新设计 */
.container h1 {
    font-size: 48px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: center;
    position: relative;
    letter-spacing: 2px;
    animation: titleFloat 3s ease-in-out infinite;
}

.container h1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite;
}

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

@keyframes titleGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 描述文字 - 重新设计 */
.description {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: var(--radius-xl);
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
    position: relative;
    animation: fadeInUp 1s ease;
    transition: all var(--transition-base);
}

.description:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.description::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 60px;
    font-family: Georgia, serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
}

.description p {
    font-size: 18px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.9;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    padding: var(--space-sm) 0;
}

/* 社会主义核心价值观 - 重新设计 */
.menu.navbar-right.links {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--radius-xl);
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    word-spacing: 10px;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 1.2s ease;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.menu.navbar-right.links::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.menu.navbar-right.links:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.menu.navbar-right.links:hover::before {
    left: 100%;
}

/* 位置信息和开关 */
.zuobiao {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 1.4s ease;
    transition: all 0.3s ease;
}

.zuobiao:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.ico_map {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(./svg/zuobiao.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 6px;
}

/* 开关按钮 */
.switch_default {
    display: none;
}

.toggleBtn {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.toggleBtn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.switch_default:checked + .toggleBtn {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.switch_default:checked + .toggleBtn::before {
    left: 33px;
}

/* 底部标语 - 重新设计 */
.footer-slogan {
    margin-top: var(--space-2xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 1.6s ease;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.footer-slogan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

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

.footer-slogan:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.4);
}

.footer-slogan p {
    margin: var(--space-sm) 0;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.footer-slogan small {
    opacity: 0.95;
    font-weight: 400;
    font-size: 14px;
}

/* 底部备案号 - 重新设计 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    text-align: center;
    border-top: 2px solid;
    border-image: var(--primary-gradient) 1;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.footer-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

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

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

/* 星星背景效果 - 增强版 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: twinkle 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* 第一层星星 */
.star:nth-child(1) { width: 3px; height: 3px; top: 5%; left: 10%; animation-delay: 0s; animation-duration: 3s; }
.star:nth-child(2) { width: 2px; height: 2px; top: 15%; left: 85%; animation-delay: 0.5s; animation-duration: 4s; }
.star:nth-child(3) { width: 4px; height: 4px; top: 25%; left: 25%; animation-delay: 1s; animation-duration: 3.5s; }
.star:nth-child(4) { width: 2px; height: 2px; top: 35%; left: 75%; animation-delay: 1.5s; animation-duration: 4.5s; }
.star:nth-child(5) { width: 3px; height: 3px; top: 45%; left: 5%; animation-delay: 2s; animation-duration: 3.2s; }
.star:nth-child(6) { width: 2px; height: 2px; top: 55%; left: 95%; animation-delay: 0.3s; animation-duration: 3.8s; }
.star:nth-child(7) { width: 4px; height: 4px; top: 65%; left: 35%; animation-delay: 0.8s; animation-duration: 4.2s; }
.star:nth-child(8) { width: 3px; height: 3px; top: 75%; left: 65%; animation-delay: 1.3s; animation-duration: 3.6s; }
.star:nth-child(9) { width: 2px; height: 2px; top: 85%; left: 15%; animation-delay: 1.8s; animation-duration: 4.3s; }
.star:nth-child(10) { width: 3px; height: 3px; top: 95%; left: 45%; animation-delay: 0.2s; animation-duration: 3.4s; }

/* 第二层星星 - 紫色调 */
.star:nth-child(11) { width: 2px; height: 2px; top: 10%; left: 70%; animation-delay: 0.7s; animation-duration: 4s; background: var(--secondary-color); }
.star:nth-child(12) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 1.2s; animation-duration: 3.5s; background: var(--secondary-color); }
.star:nth-child(13) { width: 3px; height: 3px; top: 30%; left: 80%; animation-delay: 1.7s; animation-duration: 4.2s; background: var(--secondary-color); }
.star:nth-child(14) { width: 2px; height: 2px; top: 40%; left: 30%; animation-delay: 0.4s; animation-duration: 3.8s; background: var(--secondary-color); }
.star:nth-child(15) { width: 3px; height: 3px; top: 50%; left: 60%; animation-delay: 0.9s; animation-duration: 4.4s; background: var(--secondary-color); }
.star:nth-child(16) { width: 4px; height: 4px; top: 60%; left: 0%; animation-delay: 1.4s; animation-duration: 3.3s; background: var(--secondary-color); }
.star:nth-child(17) { width: 2px; height: 2px; top: 70%; left: 90%; animation-delay: 1.9s; animation-duration: 4.1s; background: var(--secondary-color); }
.star:nth-child(18) { width: 3px; height: 3px; top: 80%; left: 40%; animation-delay: 0.1s; animation-duration: 3.7s; background: var(--secondary-color); }
.star:nth-child(19) { width: 2px; height: 2px; top: 90%; left: 55%; animation-delay: 0.6s; animation-duration: 4.5s; background: var(--secondary-color); }
.star:nth-child(20) { width: 4px; height: 4px; top: 12%; left: 22%; animation-delay: 1.1s; animation-duration: 3.9s; background: var(--secondary-color); }

/* 第三层星星 - 粉色调 */
.star:nth-child(21) { width: 3px; height: 3px; top: 18%; left: 55%; animation-delay: 0.25s; animation-duration: 4.1s; background: var(--accent-color); }
.star:nth-child(22) { width: 2px; height: 2px; top: 28%; left: 78%; animation-delay: 0.75s; animation-duration: 3.6s; background: var(--accent-color); }
.star:nth-child(23) { width: 4px; height: 4px; top: 38%; left: 12%; animation-delay: 1.25s; animation-duration: 4.3s; background: var(--accent-color); }
.star:nth-child(24) { width: 3px; height: 3px; top: 48%; left: 68%; animation-delay: 0.35s; animation-duration: 3.8s; background: var(--accent-color); }
.star:nth-child(25) { width: 2px; height: 2px; top: 58%; left: 33%; animation-delay: 0.85s; animation-duration: 4.4s; background: var(--accent-color); }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 25px var(--primary-color), 0 0 50px var(--secondary-color);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 导航栏隐藏 */
.navbar {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: var(--space-md);
    }

    .main {
        padding: var(--space-sm);
    }

    .container {
        padding: var(--space-xl) var(--space-lg);
        border-radius: var(--radius-xl);
    }

    .container h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .description p {
        font-size: 16px;
    }

    .footer-slogan p {
        font-size: 15px;
    }

    .menu.navbar-right.links {
        font-size: 13px;
        word-spacing: 6px;
        padding: var(--space-md);
    }

    .footer-content p {
        font-size: 11px;
    }

    .footer-slogan {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--space-sm);
    }

    .container {
        padding: var(--space-lg) var(--space-md);
        border-radius: var(--radius-lg);
    }

    .container h1 {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .description {
        padding: var(--space-md);
        margin: var(--space-lg) 0;
    }

    .description p {
        font-size: 15px;
    }

    .description::before {
        font-size: 45px;
    }

    .menu.navbar-right.links {
        font-size: 11px;
        word-spacing: 4px;
        letter-spacing: 0.5px;
        padding: var(--space-md);
    }

    .footer-slogan {
        padding: var(--space-md) var(--space-lg);
    }

    .footer-slogan p {
        font-size: 14px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

