*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background: #0c0c1a;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ===== 背景（index.php 用图片背景） ===== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('http://v3tuchuang.veethree.xin/uploads/20260504_e29325f961f0a3f6.jpg') center center / cover no-repeat;
}

.bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 22, 0.78);
}

/* ===== 无图片背景（jiaonang.php 用纯色） ===== */
body.plain-bg {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #24243e 100%);
}

body.plain-bg .bg-layer {
    display: none;
}

/* ===== 应用容器 ===== */
.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    flex: 1;
    padding-top: 28px;
    padding-bottom: 12px;
}

/* ===== Hero ===== */
.hero-section {
    text-align: center;
    padding: 16px 0 24px;
}

.hero-icon {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

/* ===== Card ===== */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(32px) saturate(140%);
    -webkit-backdrop-filter: blur(32px) saturate(140%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 24px;
    width: 100%;
}

/* ===== 表单 ===== */
.field {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    padding-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.field-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.field-input:focus {
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

textarea.field-input {
    resize: none;
    min-height: 110px;
    line-height: 1.6;
}

.field-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

input[type="file"].field-file {
    padding: 11px 14px;
    font-size: 14px;
}

input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    padding: 6px 14px;
    margin-right: 12px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

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

/* ===== 错误提示 ===== */
.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

/* ===== 链接复制 ===== */
.link-copy-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.link-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #c4b5fd;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    -webkit-user-select: all;
    user-select: all;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* ===== 倒计时 ===== */
.countdown-card {
    text-align: center;
    padding: 32px 24px;
}

.countdown-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.countdown-value {
    font-size: 26px;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.25);
    margin-bottom: 8px;
}

.countdown-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

/* ===== 内容展示 ===== */
.content-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.content-body {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.media-box {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.media-box img {
    display: block;
    width: 100%;
    height: auto;
}

.media-box audio {
    display: block;
    width: 100%;
    padding: 10px;
}

.meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-bar span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
}

/* ===== 底部联系开发者按钮 ===== */
.footer-bar {
    padding: 10px 0 20px;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.contact-btn:active {
    transform: translateY(0) scale(0.96);
}

/* ===== 微信号输入框（contact.html 用） ===== */
.popup-wx-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    letter-spacing: 1px;
    outline: none;
    -webkit-user-select: all;
    user-select: all;
    -webkit-appearance: none;
    appearance: none;
}

/* ===== 小屏适配 ===== */
@media (max-width: 380px) {
    .app-wrapper {
        padding: 0 14px;
    }
    .content-area {
        padding-top: 20px;
    }
    .hero-section {
        padding: 10px 0 18px;
    }
    .hero-icon {
        width: 68px;
        height: 68px;
    }
    .hero-title {
        font-size: 22px;
    }
    .card {
        padding: 20px;
        border-radius: 24px;
    }
    .link-copy-row {
        flex-direction: column;
    }
    .link-input {
        width: 100%;
    }
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    .contact-btn {
        padding: 11px 24px;
        font-size: 13px;
    }
}

/* ===== 安全区域 ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer-bar {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
