/* 日历组件样式 */
.calendar-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.month-nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.month-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 40px;
    max-height: 50px;
    left:50px;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.other-month:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    font-weight: bold;
}

.calendar-day.today .day-number {
    position: relative;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.day-number {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1px;
}

.day-week {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
}

.today-marker {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* AI查询模块样式 */
.ai-query-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 25px auto;
    max-width: 1159px;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.ai-query-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.ai-query-section .section-title {
    color: #333;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.ai-query-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;

    border-radius: 2px;
}

/* 常见问题 */
.common-questions {
    margin-bottom: 30px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    padding: 20px;

}

.common-questions h4 {
    color: #333;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.common-questions h4::before {
    content: '💭';
    font-size: 1.4rem;
}

.question-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.question-tag {

    color: #667eea;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.question-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.question-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.question-tag:hover::before {
    left: 100%;
}

/* 查询输入 */
.query-input-section {
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.query-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.query-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.query-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.query-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.query-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.query-btn:hover:not(:disabled)::before {
    left: 100%;
}

.query-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 操作按钮 */
.query-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.copy-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.copy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1aa085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.copy-btn:hover:not(:disabled)::before {
    left: 100%;
}

.copy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.reset-btn:hover::before {
    left: 100%;
}

/* 查询结果 */
.query-result {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.query-result h4 {
    color: #333;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.query-result h4::before {
    content: '🤖';
    font-size: 1.4rem;
}

.result-content {
    color: #444;
    line-height: 1.7;
    white-space: pre-wrap;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;

}

/* 错误提示 */
.query-error {
    background: linear-gradient(135deg, #ffe6e6 0%, #fff5f5 100%);
    color: #c92a2a;
    border: 2px solid rgba(201, 42, 42, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

.query-error::before {
    content: '⚠️';
    font-size: 1.2rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.message-toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.message-toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 黄历页面样式 */
.almanac-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.almanac-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.almanac-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.date-info {
    font-size: 1.2rem;
}

.current-date {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.lunar-date {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.week-info {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error-message {
    text-align: center;
    padding: 50px 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 10px;
    margin: 20px;
}

.retry-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: #c0392b;
}

/* 信息网格 */
.info-section {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: #555;
    min-width: 60px;
    font-size: 1.1rem;
}

.info-value {
    color: #333;
    font-weight: 500;
    font-size: 1.15rem;
}

/* 吉凶信息 */
.fortune-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.fortune-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fortune-item.good {
    border-left: 4px solid #27ae60;
}

.fortune-item.bad {
    border-left: 4px solid #e74c3c;
}

.fortune-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.fortune-title {
    color: #27ae60;
}

.fortune-item.bad .fortune-title {
    color: #e74c3c;
}

.fortune-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fortune-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.fortune-item.good .fortune-tag {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.fortune-item.bad .fortune-tag {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* 神煞信息 */
.shen-sha-section,
.jishen-section,
.xiongshen-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;

    padding-bottom: 5px;
}

.shen-sha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.shen-sha-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.shen-sha-label {
    font-weight: 600;
    color: #495057;
    min-width: 60px;
    font-size: 1.1rem;
}

.shen-sha-value {
    color: #333;
    font-weight: 500;
    font-size: 1.15rem;
}

/* 岁次信息 */
.suici-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.suici-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.suici-item {
    background: #000000;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

/* 吉神和凶神标签 */
.jishen-tags,
.xiongshen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jishen-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.xiongshen-tag {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calendar-section {
        padding: 15px;
        margin: 10px;
    }

    .calendar-title {
        font-size: 1.5rem;
    }

    .month-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-day {
        min-height: 35px;
        max-height: 40px;
        padding: 1px;
    }

    .day-number {
        font-size: 0.9rem;
        margin-bottom: 0px;
    }

    .day-week {
        font-size: 0.6rem;
    }

    .day-number {
        font-size: 1rem;
    }

    .almanac-content {
        padding: 10px;
    }

    .almanac-title {
        font-size: 2rem;
    }

    .fortune-section {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-label {
        font-size: 1rem;
        min-width: 50px;
    }

    .info-value {
        font-size: 1.1rem;
    }

    .shen-sha-grid {
        grid-template-columns: 1fr;
    }

    .shen-sha-label {
        font-size: 1rem;
        min-width: 50px;
    }

    .shen-sha-value {
        font-size: 1.1rem;
    }

    /* AI查询模块移动端适配 */
    .ai-query-section {
        padding: 20px;
        margin: 15px;
    }

    .ai-query-section .section-title {
        font-size: 1.4rem;
    }

    .common-questions {
        padding: 15px;
    }

    .common-questions h4 {
        font-size: 1.1rem;
    }

    .question-tags {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .question-tag {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
    }

    .query-input {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .query-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .query-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        max-width: none;
    }

    .query-result {
        padding: 20px;
    }

    .result-content {
        padding: 15px;
        font-size: 0.95rem;
    }



/* 移动端VIP样式 */
@media (max-width: 768px) {
    .vip-lock-message h4 {
        font-size: 1.2rem;
    }

    .vip-lock-message p {
        font-size: 0.95rem;
    }

    .upgrade-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

    .message-toast {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}
