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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f0e1;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: #f5f0e1;
    min-height: 100vh;
}

/* ===== 顶部标题 ===== */
.header {
    text-align: center;
    padding: 20px 0 10px;
    background: linear-gradient(180deg, #d4a574 0%, #e8c9a0 100%);
}

.logo {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 0 #e8913a, 6px 6px 0 rgba(0,0,0,0.1);
    letter-spacing: 4px;
    position: relative;
}

.logo::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
}

.subtitle {
    color: #fff;
    font-size: 14px;
    letter-spacing: 8px;
    margin-top: 5px;
}

/* ===== 装饰条 ===== */
.decoration-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 15px 0;
    background-color: #f5f0e1;
}

.dot {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    display: inline-block;
}

.dot.pink {
    background-color: #ff8fa3;
}

.dot.white {
    background-color: #fff;
}

/* ===== 主卡片 ===== */
.main-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px dashed #e8c9a0;
    position: relative;
}

/* ===== 卷轴图标 ===== */
.scroll-icon {
    text-align: center;
    margin: -40px 0 10px;
}

.scroll-content {
    display: inline-block;
}

.scroll-content .logo-img {
    width: 140px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* ===== 说明文字 ===== */
.intro-text {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-text p {
    margin: 5px 0;
    color: #666;
}

.highlight {
    color: #ff6b6b;
    font-weight: bold;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff6b6b;
    border-radius: 2px;
}

/* ===== 操作区 ===== */
.action-area {
    text-align: center;
}

.action-area h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.big-text {
    font-size: 28px;
    color: #4a90d9;
    margin: 15px 0;
    background: linear-gradient(90deg, #4a90d9, #67b8f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 爱心装饰 ===== */
.hearts {
    text-align: center;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1;
}

.hearts span {
    display: inline-block;
    margin: 0 1px;
}

/* ===== 提示文字 ===== */
.tip {
    color: #4a90d9;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0;
}

/* ===== 搜索表单 ===== */
.search-form {
    margin-top: 25px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

.search-input:focus {
    border-color: #4a90d9;
}

.search-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(74, 144, 217, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 217, 0.5);
}

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

/* ===== 结果页面 ===== */
.result-card {
    padding: 25px 20px;
}

.result-header {
    text-align: center;
}

.result-header h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.success-text {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.divider {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #ccc 0px,
        #ccc 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 25px 0;
}

/* ===== 授权证书 ===== */
.certificate {
    margin: 20px 0;
}

.cert-bg-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.cert-bg-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cert-field {
    position: absolute;
    color: #6b4423;
    font-weight: bold;
    text-align: center;
}

.wechat-field { 
    top: 50.8%;
    left: 26%;
    transform: translate(-50%, -50%);
    font-size: clamp(13px, 2.8vw, 18px);
    padding: 2px 8px;
    border-radius: 3px;
}

.name-field {
    top: 50.8%;
    left: 68%;
    transform: translate(-50%, -50%);
    font-size: clamp(13px, 2.8vw, 18px);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ===== 假代理警告 ===== */
.result-fake {
    text-align: center;
    padding: 15px 0;
}

.fake-big {
    font-size: 100px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1;
}

.warning-icon {
    font-size: 30px;
    margin: 10px 0;
}

.fake-content {
    margin: 15px 0;
    line-height: 1.6;
}

.fake-content p {
    font-size: 18px;
    color: #333;
    margin: 3px 0;
}

.fake-intro {
    font-weight: bold;
    font-size: 20px !important;
}

.fake-text-line {
    font-size: 20px;
    font-weight: bold;
    margin: 5px 0;
    line-height: 1.4;
}

.fake-text-red {
    color: #e74c3c;
    font-weight: bold;
    font-size: 24px;
}

.fake-team-name {
    font-size: 28px;
    font-weight: 900;
    color: #333;
}

.fake-highlight {
    color: #e74c3c !important;
    font-weight: bold;
    font-size: 22px !important;
}

.fake-warning {
    color: #e74c3c !important;
    font-weight: bold;
    font-size: 22px !important;
}

.fake-alert {
    color: #e74c3c !important;
    font-weight: bold;
    font-size: 18px !important;
}

.crying-star {
    font-size: 80px;
    margin-top: 15px;
}

/* ===== 返回按钮 ===== */
.back-btn {
    display: block;
    text-align: center;
    padding: 15px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    margin-top: 30px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #4a90d9;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .main-card {
        padding: 25px 15px;
    }
    
    .cert-title {
        font-size: 28px;
    }
    
    .fake-big {
        font-size: 60px;
    }
}
