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

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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.13), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
}

    --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
}


/* 主容器 */
.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* 头部区域 */
.intro {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

/* 头像样式 */
.user-warp.img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.user-warp.img img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* 博客名称 - SVG动画 */
.nickname {
    margin: 20px 0;
    position: relative;
    height: auto;
    min-height: 80px;
}

#svgBox svg {
    width: 100%;
    height: 100%;
}

.text {
    font-size: 32px;
    font-weight: bold;
    fill: var(--text-primary);
    animation: stroke 3s ease-in-out infinite alternate;
}

.text-1 {
    animation-delay: 0s;
    opacity: 0.9;
}

.text-2 {
    animation-delay: 0.5s;
    opacity: 0.7;
}

.text-3 {
    animation-delay: 1s;
    opacity: 0.5;
}

.text-4 {
    animation-delay: 1.5s;
    opacity: 0.3;
}

@keyframes stroke {
    0% {
        stroke-dashoffset: -400;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 描述文字 */
.description {
	margin: 40px 0 30px 0;
	padding: 20px;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
	border-radius: 12px;
	border-left: 4px solid var(--primary-color);
	animation: fadeInUp 1s ease;
}

.description p {
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    text-align: center;
}

/* 社会主义核心价值观 */
.menu.navbar-right.links {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    word-spacing: 8px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 1.2s ease;
    transition: all 0.3s ease;
}

.menu.navbar-right.links:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 位置信息和开关 */
.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: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1.6s ease;
    transition: all 0.3s ease;
}

.footer-slogan:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.footer-slogan p {
    margin: 8px 0;
    font-size: 15px;
    font-weight: 500;
}

.footer-slogan small {
    opacity: 0.9;
    font-weight: normal;
}

/* 底部备案号 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 12px 0;
    text-align: center;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

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

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

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

.star {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 3s infinite;
}

.star:nth-child(1) { width: 3px; height: 3px; top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { width: 2px; height: 2px; top: 20%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { width: 4px; height: 4px; top: 30%; left: 30%; animation-delay: 1s; }
.star:nth-child(4) { width: 2px; height: 2px; top: 40%; left: 70%; animation-delay: 1.5s; }
.star:nth-child(5) { width: 3px; height: 3px; top: 50%; left: 10%; animation-delay: 2s; }
.star:nth-child(6) { width: 2px; height: 2px; top: 60%; left: 90%; animation-delay: 0.3s; }
.star:nth-child(7) { width: 4px; height: 4px; top: 70%; left: 40%; animation-delay: 0.8s; }
.star:nth-child(8) { width: 3px; height: 3px; top: 80%; left: 60%; animation-delay: 1.3s; }
.star:nth-child(9) { width: 2px; height: 2px; top: 90%; left: 20%; animation-delay: 1.8s; }
.star:nth-child(10) { width: 3px; height: 3px; top: 15%; left: 50%; animation-delay: 0.2s; }
.star:nth-child(11) { width: 2px; height: 2px; top: 25%; left: 75%; animation-delay: 0.7s; }
.star:nth-child(12) { width: 4px; height: 4px; top: 35%; left: 15%; animation-delay: 1.2s; }
.star:nth-child(13) { width: 3px; height: 3px; top: 45%; left: 85%; animation-delay: 1.7s; }
.star:nth-child(14) { width: 2px; height: 2px; top: 55%; left: 35%; animation-delay: 0.4s; }
.star:nth-child(15) { width: 3px; height: 3px; top: 65%; left: 65%; animation-delay: 0.9s; }
.star:nth-child(16) { width: 4px; height: 4px; top: 75%; left: 5%; animation-delay: 1.4s; }
.star:nth-child(17) { width: 2px; height: 2px; top: 85%; left: 95%; animation-delay: 1.9s; }
.star:nth-child(18) { width: 3px; height: 3px; top: 5%; left: 45%; animation-delay: 0.1s; }
.star:nth-child(19) { width: 2px; height: 2px; top: 95%; left: 55%; animation-delay: 0.6s; }
.star:nth-child(20) { width: 4px; height: 4px; top: 12%; left: 25%; animation-delay: 1.1s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main {
        padding: 10px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .text {
        font-size: 24px;
    }
    
    .description p,
    .footer-slogan p {
        font-size: 14px;
    }
    
    .footer-content p {
        font-size: 11px;
    }
    
    .zuobiao {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-slogan {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .user-warp.img img {
        width: 100px;
        height: 100px;
    }
    
    .nickname {
        height: 60px;
    }
    
    .text {
        font-size: 20px;
    }
    
    .menu.navbar-right.links {
        font-size: 12px;
        word-spacing: 5px;
    }
}

