/* 移动应用原型样式 */
:root {
    --primary-color: #1e5631;
    --secondary-color: #8b0000;
    --accent-color: #d4af37;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --light-text: #f5f5f5;
}

.mobile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 65px);
}

/* 设备选择器 */
.device-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.selector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.selector-item i {
    font-size: 24px;
    color: #666;
}

.selector-item span {
    font-size: 14px;
}

.selector-item.active {
    background-color: var(--primary-color);
    color: white;
}

.selector-item.active i {
    color: white;
}

/* 设备容器 */
.device-container {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.device {
    width: 320px;
    height: 650px;
    background-color: white;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 12px solid #111;
    position: relative;
    display: none;
}

.device.active {
    display: block;
}

.device-header {
    height: 40px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    background-color: #f8f8f8;
    font-size: 12px;
}

.status-icons {
    display: flex;
    gap: 5px;
}

.device-content {
    height: calc(100% - 65px);
    overflow-y: auto;
    background-color: #f0f2f5;
    position: relative;
}

.device-home-indicator {
    height: 5px;
    width: 40%;
    border-radius: 3px;
    background-color: #333;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* 手机App样式 */
.app-view {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.app-view.active {
    display: block;
}

.app-header {
    height: 50px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: white;
}

.app-header.with-back {
    padding-left: 10px;
}

.back-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.app-title {
    font-weight: bold;
    font-size: 16px;
}

.app-actions {
    display: flex;
    gap: 15px;
    font-size: 18px;
}

.banner-slider {
    height: 180px;
    position: relative;
    margin-bottom: 20px;
}

.banner-image {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.banner-text {
    padding: 15px;
    color: white;
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.banner-text h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.banner-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.banner-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background-color: white;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.feature-label {
    font-size: 12px;
    text-align: center;
}

/* 区域头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.more-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.more-link i {
    font-size: 10px;
    margin-left: 2px;
}

/* 活动卡片 */
.event-list {
    margin-bottom: 20px;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-image {
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.event-time, .event-location {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.event-time i, .event-location i {
    margin-right: 3px;
    font-size: 12px;
}

.event-action {
    display: flex;
    align-items: center;
}

.event-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* 新闻卡片 */
.news-list {
    margin-bottom: 20px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.news-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.news-tag {
    background-color: rgba(30, 86, 49, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
}

.news-time {
    color: #999;
}

/* 底部导航 */
.app-nav {
    height: 50px;
    background-color: white;
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    color: #666;
}

.nav-item span {
    font-size: 10px;
    color: #666;
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-item.active span {
    color: var(--primary-color);
}

/* 智能导览页面 */
.guide-map {
    position: relative;
}

.map-container {
    height: 300px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg width="320" height="300" viewBox="0 0 320 300" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="320" height="300" fill="%23f0f0f0"/><path d="M80,150 L240,150" stroke="%231e5631" stroke-width="5" stroke-linecap="round" stroke-opacity="0.3"/><rect x="70" y="80" width="60" height="40" stroke="%231e5631" stroke-width="1" fill="%231e563120"/><rect x="200" y="80" width="60" height="40" stroke="%231e5631" stroke-width="1" fill="%231e563120"/><rect x="140" y="180" width="50" height="50" stroke="%238b0000" stroke-width="1" fill="%238b000020"/><circle cx="100" y="200" r="15" stroke="%231e5631" stroke-width="1" fill="%231e563120"/></svg>');
    background-size: cover;
    background-position: center;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    position: relative;
    animation: pulse 2s infinite;
}

.marker-label {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.map-user-location {
    position: absolute;
    left: 50%;
    bottom: 30%;
    transform: translate(-50%, -50%);
    color: #1a73e8;
    font-size: 20px;
}

.map-controls {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-btn {
    width: 30px;
    height: 30px;
    background-color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tour-select {
    display: flex;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    margin: 0 10px;
}

.select-item {
    padding: 6px 12px;
    background-color: white;
    border-radius: 16px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.select-item.active {
    background-color: var(--primary-color);
    color: white;
}

.guide-menu {
    display: flex;
    background-color: white;
    padding: 10px 0;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.guide-menu .menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.guide-menu .menu-item i {
    font-size: 18px;
    color: #666;
}

.guide-menu .menu-item span {
    font-size: 12px;
}

.guide-menu .menu-item.active i {
    color: var(--primary-color);
}

.ai-assistant {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.assistant-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.assistant-text {
    font-size: 14px;
    flex-grow: 1;
}

/* 虚拟参拜页面 */
.worship-scene {
    height: 300px;
    position: relative;
    background-color: #000;
    overflow: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="320" height="300" viewBox="0 0 320 300"><rect width="320" height="300" fill="%23000" /><polygon points="160,50 260,150 220,250 100,250 60,150" fill="%231e563140" stroke="%231e5631" stroke-width="2" /><rect x="120" y="150" width="80" height="100" fill="%231e563130" stroke="%231e5631" stroke-width="2" /><circle cx="160" cy="115" r="25" fill="%23d4af3730" stroke="%23d4af37" stroke-width="2" /></svg>');
    background-size: cover;
    background-position: center;
}

.scene-title {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.scene-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.scene-actions .action-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.scene-actions .action-btn i {
    font-size: 12px;
}

.hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
}

.hotspot-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    position: relative;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.worship-panel {
    background-color: white;
    border-radius: 8px;
    margin: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.worship-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.worship-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.worship-btn i {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.worship-btn span {
    font-size: 12px;
}

.worship-progress {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}

.progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
}

/* AI祈福页面 */
.pray-steps {
    padding: 15px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.step-line {
    position: absolute;
    top: 10px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 25%;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ddd;
    border: 2px solid white;
}

.step.active .step-dot {
    background-color: var(--primary-color);
}

.step-label {
    font-size: 10px;
    text-align: center;
    color: #666;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: bold;
}

.pray-content {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pray-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--primary-color);
}

.instruction {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 13px;
    color: #333;
}

.wish-select, .wish-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wish-textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100px;
    resize: none;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox label {
    font-size: 12px;
}

.step-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.step-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* 微信小程序样式 */
.wechat-header {
    background-color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mp-name {
    font-size: 16px;
    font-weight: bold;
}

.wechat-view {
    display: none;
    height: 100%;
    overflow-y: auto;
    background-color: #f7f7f7;
}

.wechat-view.active {
    display: block;
}

.swiper-container {
    height: 150px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.slide-content {
    text-align: center;
}

.slide-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.slide-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.swiper-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.mp-notice {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    gap: 8px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.notice-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: white;
    padding: 15px 10px;
    gap: 10px;
}

.mp-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.grid-icon {
    width: 45px;
    height: 45px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.grid-label {
    font-size: 12px;
}

.mp-section {
    margin-top: 10px;
    padding: 15px;
    background-color: white;
}

.section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-left: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    height: 15px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.mp-event-card {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.event-card-image {
    width: 120px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.event-card-content {
    flex-grow: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.event-card-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.event-card-btn {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: auto;
}

.dao-course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dao-course {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}

.course-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    opacity: 0.7;
    border-radius: 8px;
}

.course-info {
    flex-grow: 1;
}

.course-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.course-desc {
    font-size: 12px;
    color: #666;
}

/* 原型信息区 */
.prototype-info {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-bottom: 20px;
}

.info-section h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.info-section h3 {
    color: var(--primary-color);
}

.info-section p, .info-section li {
    font-size: 14px;
    line-height: 1.6;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-main {
        padding: 10px;
    }
    
    .device-container {
        transform: scale(0.9);
    }
    
    .prototype-info {
        padding: 15px;
    }
} 