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

:root {
    --primary-red: #d32027;
    --dark-bg: rgba(0, 0, 0, 0.5);
    --text-white: #ffffff;
    --text-gold: #ffda44;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 背景容器 */
.page-container {
    min-height: 100vh;
    width: 100%;
    max-width: 450px;
    /* Limit width for desktop viewing */
    margin: 0 auto;
    background-image: url('../assets/page_background.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 头部导航栏 */
.header {
    height: 50px;
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #333;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .back-icon {
    font-size: 24px;
    cursor: pointer;
    margin-right: auto;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
    margin-right: 24px;
    /* Balance back icon */
}

/* 内容主体区 */
.content {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卡片样式 */
.card {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.card .title-main {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card .date {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-img {
    height: 80px;
    margin-right: 10px;
}

.text-icon {
    height: 65px;
    margin-right: 5px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.icon-precise {
    transform: translateY(8px);
}

.icon-sudden {
    transform: translateY(-8px);
}

.input-hint {
    font-size: 16px;
    margin-bottom: 20px;
}

.divider {
    height: 1px;
    background: #fff;
    width: 100%;
    margin-bottom: 20px;
}

/* 表单输入框样式 */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;

}

.input-box {
    width: 180px;
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 6px;
    font-size: 24px;
    letter-spacing: 5px;
    text-align: center;
    color: #333;
    outline: none;
    margin: 0 auto;
    display: block;
}

/* 按钮样式 */
.btn-submit {
    width: 120px;
    height: 50px;
    background: #d92b32;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin: 20px auto 30px;
    display: block;
    transition: all 0.1s;
}

.btn-submit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(162, 23, 29, 0.8);
}

/* 底部说明信息区 */
.info-section {
    width: 100%;
    font-size: 14px;
    text-align: center;
}

.info-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-standard {
    color: var(--text-gold);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

/* 二维码区域 */
.qr-container {
    margin-top: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.qr-img {
    width: 140px;
    height: 140px;
    display: block;
}

/* 结果页视图 */
#result-page {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.result-header-text {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.pub-time {
    font-size: 15px;
    color: #fff;
    margin-bottom: 5px;
}

.status-tag {
    color: #00ff00;
    font-size: 15px;
    margin-bottom: 20px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    width: 100%;
    color: #333;
    text-align: left;
    min-height: 480px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    display: inline-block;
    font-size: 18px;
    color: #333;
    margin-right: 12px;
    font-weight: 400;
}

.result-value {
    display: inline;
    font-size: 18px;
    color: #333;
    font-weight: 400;
}

/* 结果页内日期标题的特殊样式 */
.result-date-header {
    font-size: 20px;
    margin-bottom: 35px;
    color: #333;
}

/* 加载等待动画 */
.loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    z-index: 1000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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