/* ============================================================
   index.css - 主样式（不含顶部导航和切换按钮）
   ============================================================ */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 恢复 body 布局，不加任何背景属性 */
body {
    color: #333;
    min-height: 100vh;
    padding-top: 100px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
}

/* 半透明叠加层（让文字清晰），使用伪元素放在背景图之上 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.4), rgba(228, 232, 240, 0.4));
    z-index: 0;
    pointer-events: none;
}

/* 确保 body 内容在伪元素之上 */
body > * {
    position: relative;
    z-index: 1;
}


/* ========== 主标题 - 全新边框美化 ========== */
body > h1 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 20px;
    padding: 20px 30px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
    letter-spacing: 2px;
    text-align: center;
    box-sizing: border-box;
    display: block;

    /* 边框美化 - 渐变双层边框 */
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, #3498db, #2ecc71, #f39c12, #e74c3c) 1;
    border-image-slice: 1;

    /* 背景微光 + 毛玻璃 */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    /* 外发光与阴影 */
    box-shadow: 
        0 8px 32px rgba(52, 152, 219, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    /* 圆角 */
    border-radius: 16px;

    /* 过渡动画 */
    transition: all 0.4s ease;
}

/* 标题伪元素 - 增强边框光效 */
body > h1::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: borderGlow 6s ease-in-out infinite alternate;
    opacity: 0.7;
    pointer-events: none;
}


/* 边框流光动画 */
@keyframes borderGlow {
    0% { background-position: 0% 50%; opacity: 0.6; }
    50% { opacity: 1; }
    100% { background-position: 100% 50%; opacity: 0.6; }
}

/* 标题中的 center 标签内容保持居中 */
body > h1 center {
    display: block;
    width: 100%;
}


/* 小猪图片 */
body > img[src='./static/img/pig.gif'] {
    display: block;
    margin: 20px auto;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    max-width: 85%;
    height: auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 5px solid white;
    position: relative;
    z-index: 2;
}

body > img[src='./static/img/pig.gif']:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* 小猪2 */
body > img#pig2Static {
    position: absolute;
    left: calc(50% - 200px - 50px);
    top: 26%;
    transform: translateY(-50%);
    width: 55px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body > img#pig2Static:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* +1 动画容器 */
.plus-container {
    position: absolute;
    left: calc(50% - 200px - 50px);
    top: 26%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    pointer-events: none;
    z-index: 12;
    overflow: visible;
}

.plus-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    font-weight: 800;
    color: #ff6b6b;
    text-shadow: 0 4px 20px rgba(255, 107, 107, 0.6), 0 0 40px rgba(255, 107, 107, 0.3);
    font-family: 'Segoe UI', sans-serif;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    animation: plusFloat 1.2s ease-out forwards;
}

@keyframes plusFloat {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    15% { opacity: 1; transform: translate(-50%, calc(-50% - 30px)) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, calc(-50% - 120px)) scale(1); }
}

/* 欢迎语 */
h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #2ecc71;
    margin: 20px auto 40px;
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 80%;
    text-align: center;
    border-left: 4px solid #2ecc71;
    font-weight: 600;
    position: relative;
    padding-right: 50px;
}

/* 视频 */
video {
    display: block;
    margin: 30px auto;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    max-width: 85%;
    height: auto;
    border: 5px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

video:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* operate & users 按钮 */
a[href='/operate'] {
    display: block;
    width: fit-content;
    margin: 30px auto 20px;
    padding: 16px 35px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.35);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a[href='/operate']::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

a[href='/operate']:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.5);
}

a[href='/operate']:hover::before {
    opacity: 1;
}

a[href='/operate']:active {
    transform: translateY(0) scale(0.98);
}

a[href='/operate']::after {
    content: "🚀";
    margin-left: 10px;
}

a[href='/users'] {
    display: block;
    width: fit-content;
    margin: 20px auto 20px;
    padding: 16px 35px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #e74c3c, #9b59b6);
    color: white;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.35);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a[href='/users']::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9b59b6, #e74c3c);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

a[href='/users']:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.5);
}

a[href='/users']:hover::before {
    opacity: 1;
}

a[href='/users']:active {
    transform: translateY(0) scale(0.98);
}

a[href='/users']::after {
    content: "👥";
    margin-left: 10px;
}

/* about 联系我们 */
.about {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    padding: 25px 35px;
    margin: 40px auto 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 8px 0;
    font-weight: 500;
}

.about h3:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
}

/* 访客统计 */
.visitor-stats {
    position: relative;
    width: fit-content;
    margin: 15px auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,249,252,0.96));
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 8px 24px 8px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    border-left: 5px solid #ff6b6b;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    transition: all 0.3s ease;
}

.visitor-icon {
    font-size: 26px;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.visitor-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.visitor-number {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
    min-width: 70px;
    text-align: center;
}

.visitor-unit {
    font-weight: 500;
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* 友情链接 */
#friends {
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f39c12;
    transition: none !important;
}

#friends:hover {
    transform: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

#friends h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

#friends p {
    font-size: 0.95rem;
    color: #444;
    margin: 3px 0;
    line-height: 1.6;
}

#friends a {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 4px 12px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 6px;
    margin: 2px 5px 2px 0;
    transition: none !important;
}

#friends a:hover {
    color: #fff;
    background: #3498db;
    transform: none !important;
    box-shadow: none !important;
}

#friends span {
    color: #95a5a6;
    font-size: 1.0rem;
}

/* 免责声明 */
#disclaimer {
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e74c3c;
    transition: all 0.3s ease;
    margin: 10px auto;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

#disclaimer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

#disclaimer h3 {
    margin: 0;
}

#disclaimer a {
    color: #e74c3c;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

#disclaimer a:hover {
    color: #fff;
    background: #e74c3c;
    transform: scale(1.05);
}

/* 桌面端专用 - 友情链接定位 */
@media (min-width: 769px) {
    body {
        position: relative;
    }

    #friends {
        position: absolute;
        left: calc(50% - 630px);
        top: 26%;
        transform: translateY(-50%);
        width: 380px;
        padding: 16px 24px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
        border-left: 4px solid #f39c12;
        z-index: 8;
        backdrop-filter: blur(4px);
        margin: 0;
        transition: none !important;
    }

    #friends:hover {
        transform: translateY(-50%) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10) !important;
    }

    #friends h3 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    #friends p {
        font-size: 0.95rem;
        margin: 2px 0;
        line-height: 1.5;
    }

    #friends a {
        font-size: 1.05rem;
        padding: 4px 14px;
        margin: 2px 5px 2px 0;
        transition: none !important;
    }

    #friends a:hover {
        color: #fff;
        background: #3498db;
        transform: none !important;
        box-shadow: none !important;
    }

    #friends span {
        font-size: 0.95rem;
    }

    body > img#pig2Static {
        left: calc(50% - 200px - 50px) !important;
    }
    .plus-container {
        left: calc(50% - 200px - 50px) !important;
    }

    #disclaimer {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 20px auto 30px !important;
        padding: 18px 25px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
        border-left: 4px solid #e74c3c !important;
        backdrop-filter: none !important;
        text-align: center !important;
        z-index: auto !important;
    }

    #disclaimer a {
        font-size: 1.8rem !important;
        padding: 6px 12px !important;
    }
}

/* 大屏适配 */
@media (min-width: 1400px) {
    #friends {
        left: calc(50% - 700px) !important;
        width: 420px !important;
        padding: 18px 28px !important;
    }
    #friends h3 {
        font-size: 1.6rem;
    }
    #friends p {
        font-size: 1.05rem;
    }
    #friends a {
        font-size: 1.15rem;
        padding: 5px 16px;
    }
    body > img#pig2Static { left: calc(50% - 200px - 70px) !important; width: 60px; }
    .plus-container { left: calc(50% - 200px - 70px) !important; width: 60px; height: 60px; }
    .plus-bubble { font-size: 2.8rem; }
    body > h3 { right: 480px; }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    #friends {
        left: calc(50% - 610px) !important;
        width: 340px !important;
        padding: 14px 24px !important;
    }
    #friends h3 {
        font-size: 1.3rem;
    }
    #friends p {
        font-size: 0.9rem;
    }
    #friends a {
        font-size: 1.0rem;
        padding: 4px 14px;
    }
    body > img#pig2Static { left: calc(50% - 200px - 60px) !important; width: 55px; }
    .plus-container { left: calc(50% - 200px - 60px) !important; }
    body > h3 { right: 460px; }
}

@media (max-width: 1199px) and (min-width: 992px) {
    #friends {
        left: calc(50% - 540px) !important;
        width: 280px !important;
        padding: 12px 20px !important;
    }
    #friends h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    #friends p {
        font-size: 0.8rem;
        margin: 1px 0;
    }
    #friends a {
        font-size: 0.9rem;
        padding: 3px 12px;
        margin: 1px 4px 1px 0;
    }
    body > img#pig2Static { left: calc(50% - 200px - 40px) !important; width: 52px; }
    .plus-container { left: calc(50% - 200px - 40px) !important; }
    body > h3 { right: 400px; font-size: 1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #friends {
        left: calc(50% - 470px) !important;
        width: 230px !important;
        padding: 10px 16px !important;
    }
    #friends h3 {
        font-size: 1.0rem;
        margin-bottom: 3px;
    }
    #friends p {
        font-size: 0.7rem;
        margin: 1px 0;
        line-height: 1.3;
    }
    #friends a {
        font-size: 0.8rem;
        padding: 2px 10px;
        margin: 1px 4px 1px 0;
    }
    body > img#pig2Static { left: calc(50% - 200px - 30px) !important; width: 48px; }
    .plus-container { left: calc(50% - 200px - 30px) !important; width: 48px; height: 48px; }
    .plus-bubble { font-size: 2rem; }
    body > h3 { right: 340px; font-size: 0.85rem; padding: 4px 12px; }
}

/* 移动端 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-left: 15px;
        padding-right: 15px;
    }

    body > a[href='/essay'] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body > h3 {
        position: absolute;
        right: 12px;
        top: auto;
        transform: none;
        padding: 4px 12px;
        font-size: 0.7rem;
        white-space: nowrap;
        z-index: 10;
    }

    h4 {
        font-size: 1.2rem;
        margin: 15px auto 30px;
        padding: 10px 15px;
    }

    video {
        max-width: 95%;
    }

    a[href='/operate'], a[href='/users'] {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 15px auto;
    }

    .about {
        width: 95%;
        padding: 20px;
    }

    .about h3 {
        font-size: 1rem;
    }

    .about h3:first-child {
        font-size: 1.3rem;
    }

    .visitor-stats {
        margin: 12px auto;
        padding: 5px 16px 5px 14px;
    }

    .visitor-icon {
        font-size: 22px;
    }

    .visitor-number {
        font-size: 1.5rem;
        min-width: 55px;
    }

    .visitor-text {
        font-size: 0.8rem;
    }

    body > img#pig2Static {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .plus-container {
        display: none !important;
    }

    #friends {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 14px 18px !important;
        margin: 10px auto !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
        border-left: 4px solid #f39c12 !important;
        backdrop-filter: none !important;
        z-index: auto !important;
        transition: none !important;
    }

    #friends:hover {
        transform: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    }

    #friends h3 {
        font-size: 1rem !important;
    }

    #friends p {
        font-size: 0.8rem !important;
    }

    #friends a {
        font-size: 0.85rem !important;
        padding: 3px 8px !important;
        transition: none !important;
    }

    #friends a:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    #disclaimer {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 14px 18px !important;
        margin: 10px auto !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
        border-left: 4px solid #e74c3c !important;
        backdrop-filter: none !important;
        text-align: center !important;
        z-index: auto !important;
    }

    #disclaimer a {
        font-size: 1.2rem !important;
        padding: 4px 10px !important;
    }
}

/* 超小屏 */
@media (max-width: 480px) {
    body > a[href='/essay']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body > h3 {
        right: 8px;
        padding: 3px 10px;
        font-size: 0.65rem;
    }

    h4 {
        font-size: 1rem;
        padding: 8px 12px;
    }

    a[href='/operate'], a[href='/users'] {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .about {
        padding: 15px;
    }

    .about h3 {
        font-size: 0.9rem;
    }

    .about h3:first-child {
        font-size: 1.2rem;
    }

    .visitor-stats {
        margin: 10px auto;
        padding: 4px 12px;
        gap: 6px;
    }

    .visitor-icon {
        font-size: 18px;
    }

    .visitor-number {
        font-size: 1.3rem;
        min-width: 45px;
    }
}

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

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

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

h1, h4, video, a[href='/operate'], a[href='/users'], .about {
    animation: fadeIn 1s ease-out;
}

video { animation-delay: 0.2s; }
a[href='/operate'] { animation-delay: 0.4s; }
a[href='/users'] { animation-delay: 0.5s; }
.about { animation-delay: 0.6s; }

a[href='/operate']:hover::after,
a[href='/users']:hover::after {
    animation: bounce 0.5s ease infinite alternate;
}

/* 装饰条 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2ecc71, #e74c3c, #f39c12);
    z-index: 1002;
}

body > a[href='/']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss'])::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px 3px 0 0;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(46, 204, 113, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(155, 89, 182, 0.05) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
}

/* 夜间模式 - 主体样式 */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0 !important;
}

body.dark-mode div:not(.visitor-stats):not(.about),
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode p, body.dark-mode span {
    background: transparent !important;
    color: inherit !important;
}

body.dark-mode .visitor-stats {
    background: #2a2a3e !important;
    border-left-color: #ff6b6b !important;
}

body.dark-mode .visitor-number {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #ff6b6b !important;
}

body.dark-mode .about {
    background: #2a2a3e !important;
    border-top-color: #4a6a8a !important;
}

body.dark-mode .about h3:first-child {
    color: #6a9ac8 !important;
}

body.dark-mode video,
body.dark-mode body > img[src='./static/img/pig.gif'] {
    border-color: #2a2a3e !important;
}

body.dark-mode body > a:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']) {
    background-color: rgba(20, 20, 35, 0.95) !important;
    color: #ccc !important;
}

body.dark-mode body > a[href='/']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']) {
    background-color: #1a3a5a !important;
}

body.dark-mode body > a[href='/login']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']),
body.dark-mode body > a[href='/signUp']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']) {
    color: #90caf9 !important;
}

body.dark-mode body > a[href='/login']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']):hover {
    color: #64b5f6 !important;
}

body.dark-mode body > a[href='/signUp']:not([href='/xsx']):not([href='/operate']):not([href='/users']):not([href='/rss']):hover {
    color: #ef9a9a !important;
}

body.dark-mode body > h3 {
    background: linear-gradient(135deg, #5d4037, #8d6e63) !important;
    color: #f5f5f5 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode body > h1 {
    border-bottom-color: #2c3e50 !important;
}

body.dark-mode #friends {
    background: rgba(42, 42, 62, 0.92) !important;
    border-left-color: #f39c12 !important;
}

body.dark-mode #friends h3 {
    color: #e0e0e0 !important;
}

body.dark-mode #friends p {
    color: #b0b0b0 !important;
}

body.dark-mode #friends a {
    color: #64b5f6 !important;
    background: rgba(100, 181, 246, 0.1) !important;
}

body.dark-mode #friends a:hover {
    color: #fff !important;
    background: #64b5f6 !important;
}

body.dark-mode #disclaimer {
    background: rgba(42, 42, 62, 0.92) !important;
    border-left-color: #e74c3c !important;
}

body.dark-mode #disclaimer a {
    color: #ef9a9a !important;
}

body.dark-mode #disclaimer a:hover {
    color: #fff !important;
    background: #e74c3c !important;
}

/* ========== SEO 搜索框样式 ========== */
#seo {
    position: relative;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2ecc71;
    transition: all 0.3s ease;
    margin: 10px auto;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

#seo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

#seo p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.search-box input:hover {
    border-color: #2ecc71;
    background: #fff;
}

.search-box input:focus {
    border-color: #2ecc71;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.search-box button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.search-box button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.search-box button:active {
    transform: translateY(0) scale(0.98);
}

/* 夜间模式适配 */
body.dark-mode #seo {
    background: rgba(42, 42, 62, 0.92) !important;
    border-left-color: #2ecc71 !important;
}

body.dark-mode #seo p {
    color: #aaa !important;
}

body.dark-mode .search-box input {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .search-box input:hover,
body.dark-mode .search-box input:focus {
    border-color: #2ecc71;
    background: #3a3a3a;
}

/* 桌面端定位 - 与友链并列，靠右避免重叠 */
@media (min-width: 769px) {
    #seo {
        position: absolute;
        right: calc(50% - 630px + 100px);  /* 继续减小，往右移 */
        top: 26%;
        transform: translateY(-50%);
        width: 280px;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
        border-left: 4px solid #2ecc71;
        z-index: 8;
        backdrop-filter: blur(4px);
        margin: 0;
        transition: none !important;
    }

    #seo:hover {
        transform: translateY(-50%) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10) !important;
    }

    #seo p {
        font-size: 0.75rem;
        margin-top: 8px;
    }

    .search-box input {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 120px;
    }

    .search-box button {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .search-box {
        gap: 6px;
    }
}

/* 大屏适配 */
@media (min-width: 1400px) {
    #seo {
        right: calc(50% - 700px + 130px) !important;  /* 继续减小，往右移 */
        width: 320px !important;
        padding: 16px 24px !important;
    }
    #seo p {
        font-size: 0.85rem;
    }
    .search-box input {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    .search-box button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    #seo {
        right: calc(50% - 610px + 50px) !important;  /* 继续减小，往右移 */
        width: 250px !important;
        padding: 12px 18px !important;
    }
    #seo p {
        font-size: 0.7rem;
    }
    .search-box input {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 100px;
    }
    .search-box button {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    #seo {
        right: calc(50% - 540px + 0px) !important;  /* 继续减小，往右移 */
        width: 220px !important;
        padding: 10px 16px !important;
    }
    #seo p {
        font-size: 0.65rem;
    }
    .search-box input {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 80px;
    }
    .search-box button {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #seo {
        right: calc(50% - 470px + (-30px)) !important;  /* 继续减小，往右移 */
        width: 200px !important;
        padding: 8px 14px !important;
    }
    #seo p {
        font-size: 0.6rem;
        margin-top: 5px;
    }
    .search-box input {
        padding: 4px 8px;
        font-size: 0.65rem;
        min-width: 70px;
    }
    .search-box button {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}

/* 移动端 */
@media (max-width: 768px) {
    #seo {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 14px 18px !important;
        margin: 10px auto !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
        border-left: 4px solid #2ecc71 !important;
        backdrop-filter: none !important;
        z-index: auto !important;
        transition: none !important;
    }

    #seo:hover {
        transform: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .search-box input {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-width: 150px;
    }

    .search-box button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}