/* ============================================================
   禅意色彩体系 & 全局变量
   ============================================================ */
:root {
    --zen-red: #8e2323;    /* 佛门红 */
    --zen-gold: #c6a355;   /* 祥云金 */
    --zen-text: #332c2b;   /* 墨色 */
}

/* ============================================================
   全局布局与背景
   ============================================================ */
body, html {
    margin: 0; 
    padding: 0;
    font-family: "PingFang SC", "Lantinghei SC", "Microsoft YaHei", serif;
    color: var(--zen-text);
    /* 设置全屏背景图 */
    background: url('https://jpg.jsl188.cc/jslw/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* ============================================================
   容器组件
   ============================================================ */
/* 主容器：采用半透明白色 */
.main-container {
    width: 100%;
    max-width: 720px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* 佛像区域 */
.buddha-banner {
    width: 100%;
    background: #000;
    line-height: 0;
    border-bottom: 5px solid var(--zen-gold);
}

.buddha-banner img {
    width: 100%;
    display: block;
    filter: contrast(1.05);
}

.content-body {
    padding: 30px 25px;
}

/* ============================================================
   经文与文本区
   ============================================================ */
.scripture-box {
    position: relative;
    padding: 25px;
    border: 1px solid #f0e6d2;
    background: rgba(255, 250, 245, 0.8);
    margin-bottom: 30px;
    box-shadow: inset 0 0 15px rgba(230, 213, 184, 0.2);
}

.quote-main {
    font-family: "STKaiti", "Kaiti", serif;
    font-size: 17px;
    color: var(--zen-red);
    text-align: center;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    line-height: 1.6;
    font-weight: bold;
}

.text-block {
    font-size: 13.5px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 12px;
}

.source-tag {
    text-align: right;
    font-size: 11px;
    color: var(--zen-gold);
    margin-bottom: 15px;
}

.scripture-footer {
    text-align: center;
    font-weight: bold;
    color: var(--zen-red);
    padding-top: 15px;
    border-top: 1px double #f0e6d2;
    font-size: 14px;
}

/* ============================================================
   表单卡片
   ============================================================ */
.form-card {
    background: #fff;
    border: 1px solid #f0e6d2;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.privacy-banner {
    background-color: var(--zen-red);
    color: #fdfcf8;
    font-size: 12px;
    padding: 12px;
    text-align: center;
    line-height: 1.5;
}

.form-inner { padding: 25px 20px; }
.form-group { margin-bottom: 15px; }

.form-label { 
    display: block; 
    font-size: 13px; 
    font-weight: bold; 
    color: var(--zen-red); 
    margin-bottom: 8px; 
}

.form-input, .form-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #dcd3c1;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.form-textarea { height: 100px; }

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8e2323 0%, #6d1a1a 100%);
    color: #fdfcf8;
    border: none;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ============================================================
   底部展示
   ============================================================ */
.footer-record {
    padding: 30px 20px;
    text-align: center;
    background-color: rgba(253, 252, 248, 0.9);
    border-top: 1px solid #eee;
    margin-top: auto;
}

#resultText {
    font-size: 17px;
    color: var(--zen-red);
    font-family: "STKaiti", serif;
    font-weight: bold;
    margin-bottom: 10px;
}

.refresh-text { font-size: 11px; color: #999; }

/* ============================================================
   LOGO 与 法轮旋转动画
   ============================================================ */
.logo-container {
    position: relative;
    display: block;
    margin: 20px auto;
    width: fit-content;
    line-height: 0;
}

.logo-container .base {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-container .logo-falun {
    position: absolute;
    top: 55%;
    left: 10px;
    width: 38px;
    margin-top: -30px; /* 修改：应该是 width 的一半(38/2=19)，原代码是 -30 */
    z-index: 10;
    animation: rotation 10s linear infinite;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 600px) {
    .main-container { margin: 0; border-radius: 0; }
    .content-body { padding: 15px; }
    .quote-main { font-size: 16px; }
}