/*
 * ============================================================================
 * Redstone NOOB 小站通用样式 (common.css)
 * ============================================================================
 * 液态玻璃 / 毛玻璃效果 + 半透明背景
 * ============================================================================
 */

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

body {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #202124;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background-color: #f8f9fa;
}

/* 背景壁纸（复用主站壁纸，如果在 blog 目录则调整路径） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/winxp壁纸.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

/* ========== 导航栏 ========== */
.mainnav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.mainnav img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.nav-brand h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 500;
    color: #1a73e8;
    letter-spacing: -0.5px;
}

.nav-desc {
    font-size: 0.95rem;
    color: #5f6368;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.mainnav .nav_a {
    color: #5f6368;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mainnav a:hover {
    color: #1a73e8;
    background-color: #f1f3f4;
}

/* ========== 主内容区 ========== */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========== 天气信息（导航栏右上角） ========== */
.weather-info {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.weather-info:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ========== 卡片 ========== */
.card {
    border-radius: 16px;
    overflow: hidden;
    padding: 32px 28px;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.desc {
    color: #5f6368;
    font-size: 1rem;
    line-height: 1.7;
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.title {
    display: inline-block;   /* 让 a 标签的宽高由内容决定，同时能设置上下边距 */
    font-size: 1.6rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
    line-height: 1.3;
    text-decoration: none;   /* 去掉链接默认的下划线 */

    /*
     * transition 让颜色变化有过渡动画，不会瞬间跳变。
     * color 0.2s ease 表示颜色在 0.2 秒内平滑变化。
     */
    transition: color 0.2s ease;
}

/*
 * :hover 伪类 —— 当鼠标悬停在标题上时触发。
 * 这里把颜色改成蓝色，同时鼠标指针会变成手型（因为 a 标签默认就是手型）。
 */
.title:hover {
    color: #1a73e8;
}

.content {
    color: #3c4043;
    font-size: 1rem;
    line-height: 1.7;
}

.content p {
    margin-bottom: 12px;
}


.section-desc {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ========== 表单元素 ========== */
.input-row {
    margin-bottom: 20px;
}

.input-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3c4043;
    margin-bottom: 8px;
}

.input-row textarea,
.input-row input[type="text"],
.input-row input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.5);
    color: #202124;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row textarea:focus,
.input-row input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.input-row textarea::placeholder {
    color: #9aa0a6;
}

/* ========== 按钮 ========== */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.button-group.center {
    justify-content: center;
}

.btn-primary {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #dadce0;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:disabled {
    color: #9aa0a6;
    cursor: not-allowed;
}

.btn-ghost {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    color: #5f6368;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1a73e8;
}

/* ========== 状态提示 ========== */
.status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(52, 168, 83, 0.1);
    border: 1px solid rgba(52, 168, 83, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    color: #137333;
    font-size: 0.9rem;
}

.status-box.hidden {
    display: none;
}

.status-icon {
    font-size: 1.2rem;
}

/* ========== 阅后即焚 ========== */
.burn-after-reading {
    margin-top: 16px;
    padding: 16px;
    background-color: rgba(234, 67, 53, 0.05);
    border: 1px solid rgba(234, 67, 53, 0.15);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #3c4043;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
}

.checkbox-label input[type="number"] {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: inherit;
    text-align: center;
}

.burn-timer {
    margin-top: 12px;
    text-align: center;
    font-size: 1.2rem;
    color: #ea4335;
    font-weight: 500;
    animation: pulse 1s ease-in-out infinite;
}

.burn-timer.hidden {
    display: none;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== 技术说明区 ========== */
.tech-details {
    font-size: 0.9rem;
    color: #5f6368;
    line-height: 1.7;
}

.tech-details p {
    margin-bottom: 8px;
}

.tech-details ol,
.tech-details ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.tech-details li {
    margin-bottom: 4px;
}

.tech-details strong {
    color: #202124;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    /*
     * 手机端：隐藏头像和站点描述，节省导航栏空间。
     * 只保留站点标题和导航链接，保证核心功能可用。
     */
    .nav-brand img {
        display: none;
    }

    .nav-brand h2 {
        font-size: 1.4rem;
    }

    .nav-desc {
        display: none;
    }

    .main-content {
        padding: 32px 16px;
    }

    .card {
        padding: 24px 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .button-group {
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .weather-info {
        display: none;
    }
}
