/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
}

:root {
    /* Auto/Light Theme Variables */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Microsoft Yahei", "微软雅黑";

    --bg-gradient-start: #667eea;
    --bg-gradient-mid: #764ba2;
    --bg-gradient-end: #f093fb;

    --text-primary: #333;
    --text-secondary: #666;

    --card-bg: rgba(255, 255, 255, 0.98);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-hover-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);

    --link-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --link-text: #fff;
    --link-shadow: rgba(102, 126, 234, 0.4);

    --tip-highlight: #333;
    --tip-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    --tip-border: rgba(102, 126, 234, 0.2);

    --footer-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    --footer-border: rgba(255, 255, 255, 0.5);

    --blob-1: rgba(120, 119, 198, 0.3);
    --blob-2: rgba(252, 70, 107, 0.3);
    --blob-3: rgba(254, 140, 0, 0.3);
}

[data-theme="dark"] {
    --bg-gradient-start: #0f172a;
    --bg-gradient-mid: #1e293b;
    --bg-gradient-end: #0f172a;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;

    --card-bg: rgba(30, 41, 59, 0.95);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);

    --link-bg: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --link-shadow: rgba(59, 130, 246, 0.4);

    --tip-highlight: #f1f5f9;
    --tip-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(51, 65, 85, 0.6));
    --tip-border: rgba(255, 255, 255, 0.15);

    --footer-bg: rgba(30, 41, 59, 0.9);
    --footer-border: rgba(255, 255, 255, 0.1);

    --blob-1: rgba(56, 189, 248, 0.2);
    --blob-2: rgba(168, 85, 247, 0.2);
    --blob-3: rgba(236, 72, 153, 0.2);
}

body {
    font-family: var(--font-stack);
    font-size: 16px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    transition: color 0.3s ease;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, var(--blob-1), transparent 50%),
        radial-gradient(circle at 80% 80%, var(--blob-2), transparent 50%),
        radial-gradient(circle at 40% 80%, var(--blob-3), transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundShift {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* 主容器 */
.release {
    position: relative;
    width: 90%;
    max-width: 550px;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    padding-top: clamp(50px, 8vh, 80px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片主体 */
.release-body {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    margin-top: 0;
    padding-top: clamp(40px, 7vh, 70px);
    box-shadow: var(--card-shadow),
        0 0 0 1px var(--card-border) inset;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.release-body:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow),
        0 0 0 1px var(--card-border) inset;
}

/* 头像区域 */
.release-body .image {
    text-align: center;
    position: absolute;
    top: -40px;
    /* Moved up slightly */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.release-body .image img {
    border-radius: 50%;
    width: 90px;
    /* Slightly smaller (was 100px) */
    height: 90px;
    object-fit: cover;
    background-color: #fff;
    /* Specific white background for image */
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .release-body .image img {
    border-color: #334155;
    background-color: #1e293b;
}

.release-body .image img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* 标题区域 */
.release-body .title {
    padding: clamp(10px, 3vh, 30px) 20px;
    text-align: center;
}

.release-body .title h2 {
    font-size: 28px;
    /* Slightly smaller */
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

[data-theme="dark"] .release-body .title h2 {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Standard property */
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(20deg);
    }
}

.release-body .title p {
    font-size: 14px;
    /* Slightly smaller */
    padding-top: 8px;
    /* Reduced */
    color: var(--text-secondary);
    line-height: 1.5;
    /* Reduced */
    letter-spacing: 0.5px;
}

/* 链接区域 */
.release-main .links {
    padding: clamp(10px, 3vh, 25px) 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .release-main .links {
    border-color: rgba(255, 255, 255, 0.1);
}

.release-main .links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Slightly tighter gap */
    justify-content: center;
    list-style: none;
}

.release-main .links ul li {
    flex: 0 0 calc(33.333% - 8px);
    /* Adjusted for new gap */
    min-width: 0;
}

.release-main .links ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 4px;
    /* Reduced padding */
    font-size: 14px;
    /* Slightly smaller text for compactness */
    color: var(--link-text);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--link-bg);
    box-shadow: 0 4px 15px var(--link-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.release-main .links ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.release-main .links ul li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--link-shadow);
}

.release-main .links ul li a:hover::before {
    left: 100%;
}

.release-main .links ul li a:active {
    transform: translateY(-1px);
}

/* 提示区域 */
.release-main .tips {
    text-align: center;
    padding: clamp(10px, 3vh, 25px) 20px 10px;
}

.release-main .tips p {
    font-size: 13px;
    /* Slightly smaller */
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    /* Reduced */
    line-height: 1.6;
    /* Reduced */
}

.release-main .tips p b {
    color: var(--tip-highlight);
    padding: 6px 12px;
    /* Reduced */
    margin: 2px;
    /* Reduced */
    border-radius: 12px;
    background: var(--tip-bg);
    border: 1px solid var(--tip-border);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.release-main .tips p b:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
}

[data-theme="dark"] .release-main .tips p b:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 页脚 */
footer {
    text-align: center;
    padding: clamp(10px, 2vh, 20px);
    border-radius: 16px;
    margin: clamp(10px, 3vh, 20px) 0;
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--footer-border);
    transition: background 0.3s ease;
}

footer h2 {
    font-size: 16px;
    /* Slightly smaller */
    margin-bottom: 5px;
    /* Reduced */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

[data-theme="dark"] footer h2 {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer p {
    margin-bottom: 0;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-size: 12px;
    /* Slightly smaller */
}

/* 响应式设计 */
@media screen and (max-width: 550px) {
    body {
        font-size: 14px;
    }

    .release {
        width: 95%;
    }

    .release-body .image img {
        width: 80px;
        /* Restore to slightly larger if space permits, or 75px */
        height: 80px;
    }

    .release-body .image {
        top: -40px;
    }

    .release-body .title h2 {
        font-size: 24px;
    }

    .release-body .title p {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .release-main .links ul li {
        flex: 0 0 calc(33.333% - 6px);
    }

    .release-main .links ul li a {
        font-size: 14px;
        font-weight: 500;
        padding: 12px 6px;
        border-radius: 10px;
        letter-spacing: 0.3px;
    }

    .release-main .tips p {
        font-size: 13px;
    }

    .release-main .tips p b {
        padding: 4px 8px;
        font-size: 12px;
    }

    footer h2 {
        font-size: 16px;
    }

    footer p {
        letter-spacing: 0.3px;
        font-size: 12px;
    }

    /* Mobile Touch Optimization */
    .controls select {
        padding: 8px 32px 8px 16px;
        font-size: 14px;
    }
}

/* Small Screen Optimization (e.g. iPhone SE) */
@media screen and (max-width: 380px) {
    .release-main .links ul li {
        flex: 0 0 calc(50% - 6px);
        /* Switch to 2 columns */
    }

    .release-body .title h2 {
        font-size: 22px;
    }
}