/* 祈福系统样式 */

.pray-main {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 65px);
}

/* 侧边栏样式 */
.pray-sidebar {
    width: 280px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eaeaea;
    overflow-y: auto;
}

.pray-types {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.pray-types h3 {
    margin: 0 0 15px;
    color: var(--primary-color);
    font-size: 16px;
}

.pray-type-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pray-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.pray-type-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.pray-type-item.active {
    background-color: rgba(30, 86, 49, 0.1);
    border: 1px solid var(--primary-color);
}

.type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
}

.type-name {
    font-size: 14px;
    text-align: center;
}

.saved-prayers {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.saved-prayers h3 {
    margin: 0 0 15px;
    color: var(--primary-color);
    font-size: 16px;
}

.saved-prayer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saved-prayer-item {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.saved-prayer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.prayer-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.prayer-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.prayer-preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 内容区域样式 */
.pray-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
    overflow-y: auto;
    position: relative;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.active .step-num {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-num {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-num:after {
    content: "✓";
}

.step-name {
    font-size: 14px;
    color: #666;
}

.step.active .step-name {
    color: var(--primary-color);
    font-weight: bold;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: #f0f0f0;
    margin: 0 15px;
    position: relative;
    top: -20px;
}

/* 步骤内容 */
.step-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.step-view {
    display: none;
    padding: 25px;
}

.step-view.active {
    display: block;
}

.step-view h2 {
    margin: 0 0 20px;
    color: var(--primary-color);
    font-size: 22px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

/* 表单样式 */
.wish-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.date-inputs {
    display: flex;
    gap: 10px;
}

.form-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    flex: 1;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.wish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background-color: #e0e0e0;
}

.tag.active {
    background-color: var(--primary-color);
    color: white;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.next-btn, .prev-btn, .action-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-btn {
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
}

.prev-btn:hover {
    background-color: #f5f5f5;
}

.next-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.next-btn:hover {
    background-color: #174628;
}

.action-btn {
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    display: flex;
    align-items: center;
}

.action-btn i {
    margin-right: 8px;
}

.action-btn:hover {
    background-color: #f5f5f5;
}

.action-btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.action-btn.primary:hover {
    background-color: #174628;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 仪式选择 */
.ritual-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ritual-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.ritual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.ritual-card.active {
    border: 2px solid var(--primary-color);
}

.ritual-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.ritual-1 {
    background-image: url('data:image/svg+xml;utf8,<svg width="300" height="150" viewBox="0 0 300 150" xmlns="http://www.w3.org/2000/svg"><rect width="300" height="150" fill="%23f5f5f5"/><circle cx="150" cy="75" r="50" fill="%231e563120"/><path d="M150,25 a50,50 0 0,1 0,100 a50,50 0 0,1 0,-100" fill="white"/><path d="M150,25 a50,50 0 0,0 0,100 a50,50 0 0,0 0,-100" fill="%231e563120"/><circle cx="150" cy="50" r="10" fill="white"/><circle cx="150" cy="100" r="10" fill="%231e563120"/></svg>');
}

.ritual-2 {
    background-image: url('data:image/svg+xml;utf8,<svg width="300" height="150" viewBox="0 0 300 150" xmlns="http://www.w3.org/2000/svg"><rect width="300" height="150" fill="%23f5f5f5"/><path d="M50,120 Q150,40 250,120" stroke="%231e5631" stroke-width="2" fill="none"/><path d="M75,100 Q150,40 225,100" stroke="%231e5631" stroke-width="2" fill="none"/><path d="M100,80 Q150,40 200,80" stroke="%231e5631" stroke-width="2" fill="none"/><circle cx="150" cy="40" r="15" fill="%23d4af3750"/></svg>');
}

.ritual-3 {
    background-image: url('data:image/svg+xml;utf8,<svg width="300" height="150" viewBox="0 0 300 150" xmlns="http://www.w3.org/2000/svg"><rect width="300" height="150" fill="%23f5f5f5"/><polygon points="150,25 125,100 175,100" fill="%231e563120"/><polygon points="100,50 200,50 150,125" fill="%23d4af3730"/><circle cx="150" cy="50" r="15" fill="%238b000030"/><line x1="100" y1="75" x2="200" y2="75" stroke="%231e5631" stroke-width="2"/></svg>');
}

.ritual-info {
    padding: 15px;
}

.ritual-info h3 {
    margin: 0 0 8px;
    color: var(--primary-color);
}

.ritual-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 祈福仪式动画 */
.ritual-animation {
    height: 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.incense-holder {
    position: absolute;
    bottom: 70px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.incense {
    width: 4px;
    height: 80px;
    background-color: var(--accent-color);
    position: relative;
}

.incense::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    animation: glow 2s infinite;
}

.incense::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 20px;
    background: linear-gradient(to top, rgba(200, 0, 0, 0.2), transparent);
    animation: smoke 3s infinite;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px red;
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 10px red, 0 0 20px rgba(255, 0, 0, 0.5);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 5px red;
        opacity: 0.8;
    }
}

@keyframes smoke {
    0% {
        height: 20px;
        opacity: 0.8;
    }
    50% {
        height: 40px;
        opacity: 0.5;
    }
    100% {
        height: 20px;
        opacity: 0.8;
    }
}

.altar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wish-paper {
    width: 120px;
    height: 80px;
    background-color: #f5e9d5;
    border: 1px solid #e5d0a0;
    padding: 10px;
    font-size: 10px;
    overflow: hidden;
    transform: rotate(-2deg);
}

.wish-text {
    color: #8b0000;
    font-family: "KaiTi", "STKaiti", serif;
    line-height: 1.5;
}

.ritual-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
}

.ritual-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 祈福结果 */
.blessing-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.certificate {
    width: 100%;
    max-width: 600px;
    background-color: #f9f7f0;
    border: 1px solid #e0d5c0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0d5c0;
}

.cert-emblem {
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><circle cx="25" cy="25" r="23" stroke="%231e5631" stroke-width="2" fill="none"/><path d="M15,25 Q25,15 35,25 T15,25" stroke="%231e5631" stroke-width="2" fill="none" stroke-dasharray="2 1"/></svg>');
    margin-right: 15px;
}

.certificate-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    letter-spacing: 2px;
    font-family: "SimSun", serif;
}

.certificate-content {
    padding: 15px 0;
    text-align: center;
}

.blessing-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
    font-family: "KaiTi", "STKaiti", serif;
}

.blessing-poem {
    font-size: 18px;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: "KaiTi", "STKaiti", serif;
}

.blessing-explanation {
    font-size: 14px;
    color: #666;
    text-align: left;
    line-height: 1.6;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(30, 86, 49, 0.05);
    border-radius: 8px;
}

.certificate-footer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #e0d5c0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-date {
    font-family: "KaiTi", "STKaiti", serif;
    color: #666;
}

.cert-seal {
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="29" fill="%23f9f7f0" stroke="%238b0000" stroke-width="2"/><text x="15" y="35" font-family="Arial" font-size="14" fill="%238b0000">道观印</text></svg>');
    opacity: 0.7;
}

.result-actions {
    display: flex;
    gap: 15px;
}

/* 装饰元素 */
.temple-decoration {
    position: fixed;
    width: 150px;
    height: 150px;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.top-left {
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="150" height="150" viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L150,0 L75,75 Z" fill="%231e5631"/></svg>');
}

.top-right {
    top: 0;
    right: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="150" height="150" viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L150,0 L75,75 Z" fill="%231e5631" transform="rotate(90, 75, 75)"/></svg>');
}

.bottom-left {
    bottom: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="150" height="150" viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L150,0 L75,75 Z" fill="%231e5631" transform="rotate(-90, 75, 75)"/></svg>');
}

.bottom-right {
    bottom: 0;
    right: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="150" height="150" viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L150,0 L75,75 Z" fill="%231e5631" transform="rotate(180, 75, 75)"/></svg>');
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pray-main {
        flex-direction: column;
    }
    
    .pray-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
    }
    
    .ritual-selection {
        grid-template-columns: 1fr;
    }
} 