/* 运势测算插件样式 - 高端简约风格 */

* {
    box-sizing: border-box;
}

/* 触发按钮样式 */
 

/* 遮罩层 */
.fortune-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fortune-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* 弹窗容器 - 加宽加大 */
.fortune-modal {
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 1100px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e0e0e0;
}

.fortune-overlay.active .fortune-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 退出动画 */
.fortune-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.fortune-overlay.closing .fortune-modal {
    transform: translateY(-20px) scale(0.98);
    opacity: 0;
    transition: all 0.3s ease-out;
}

/* 关闭按钮 */
.fortune-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 200;
    color: #999;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid #e0e0e0;
}

.fortune-close:hover {
    background: #E67E22;
    color: #fff;
    border-color: #E67E22;
}

/* 弹窗头部 */
.fortune-header {
    padding: 40px 40px 28px;
    border-bottom: 3px solid #E67E22;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}

.fortune-title {
    margin: 0;
    font-size: 32px;
    color: #E67E22;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* 步骤进度条 */
.fortune-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.fortune-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    background: #E67E22;
    color: #fff;
    border-color: #E67E22;
}

.step-dot.completed {
    background: #D35400;
    color: #fff;
    border-color: #D35400;
}

.step-line {
    width: 50px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 4px;
}

/* 弹窗内容区 */
.fortune-content {
    padding: 40px;
    min-height: 350px;
}

.fortune-step-content {
    display: none;
}

.fortune-step-content.active {
    display: block;
}

/* 主题选择列表 */
.topic-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e0e0e0;
}

.topic-card {
    padding: 20px 24px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.topic-card:last-child {
    border-bottom: none;
}

.topic-card:hover {
    background: #fafafa;
    padding-left: 28px;
}

.topic-card.selected {
    background: #E67E22;
    color: #fff;
    border-left: 4px solid #D35400;
    padding-left: 20px;
}

.topic-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-icon svg {
    width: 100%;
    height: 100%;
    stroke: #E67E22;
    transition: stroke 0.3s ease;
}

.topic-card.selected .topic-icon svg {
    stroke: #fff;
}

.topic-name {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.3px;
}

/* 表单样式 */
.fortune-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-label {
    font-size: 13px;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.form-label .required {
    color: #E67E22;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #E67E22;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #E67E22;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
}

/* 日期和时间输入框 */
.form-input[type="date"],
.form-input[type="time"],
.form-input.flatpickr-input {
    cursor: pointer;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E67E22' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 22px;
    padding-right: 55px;
}

.form-input[type="time"],
.form-input.flatpickr-time {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E67E22' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

/* 下拉选择框 */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23E67E22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 22px;
    padding-right: 55px;
}

.form-select option {
    padding: 12px;
    font-size: 16px;
}

/* 文本域 */
.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.7;
    font-size: 15px;
}

/* 提示文字 */
.form-hint {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.3px;
    margin-top: -4px;
}

/* 输入框为空时的提示 */
.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* ========================================
   Flatpickr 日期时间选择器自定义样式
   ======================================== */

.flatpickr-calendar {
    background: #fff;
    border: 3px solid #E67E22 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100% !important;
    max-width: 480px !important;
    padding: 0 !important;
}

.flatpickr-calendar.open {
    z-index: 9999;
}

/* 月份导航栏 */
.flatpickr-months {
    background: #E67E22;
    padding: 20px 0;
    position: relative;
}

.flatpickr-month {
    height: auto;
}

.flatpickr-current-month {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    height: auto;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 16px;
    margin-right: 8px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: #D35400;
}

.flatpickr-current-month input.cur-year {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 16px;
}

.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus {
    background: #D35400;
}

/* 前后月份切换按钮 */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #fff;
    padding: 12px;
    height: 44px;
    width: 44px;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: #D35400;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    width: 18px;
    height: 18px;
}

/* 星期标题 */
.flatpickr-weekdays {
    background: #fafafa;
    height: auto;
    padding: 15px 0;
}

.flatpickr-weekday {
    color: #E67E22;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: auto;
    line-height: 1;
}

/* 日期网格 */
.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 10px;
}

.flatpickr-day {
    color: #333;
    font-weight: 600;
    border: 2px solid transparent !important;
    font-size: 15px;
    height: 48px !important;
    line-height: 48px !important;
    max-width: none !important;
    flex-basis: 14.2857% !important;
    margin: 2px !important;
    transition: all 0.2s ease;
}

.flatpickr-day:hover {
    background: #fff3e0 !important;
    border-color: #E67E22 !important;
    color: #E67E22 !important;
}

.flatpickr-day.today {
    border: 2px solid #E67E22 !important;
    background: #fff9f5 !important;
    color: #E67E22 !important;
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: #fff3e0 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #E67E22 !important;
    border-color: #E67E22 !important;
    color: #fff !important;
    font-weight: 700;
}

.flatpickr-day.inRange {
    background: #fff3e0 !important;
    border-color: #fff3e0 !important;
    box-shadow: none !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ccc !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #bbb;
}

/* 时间选择器 */
.flatpickr-time {
    border-top: 3px solid #E67E22;
    padding: 20px 0;
    height: auto !important;
    max-height: none !important;
}

.flatpickr-time input {
    color: #333;
    font-weight: 700;
    font-size: 24px;
    height: 50px !important;
    padding: 10px;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: #fff3e0 !important;
}

.flatpickr-time .flatpickr-time-separator {
    color: #E67E22;
    font-weight: 700;
    font-size: 24px;
    padding: 0 8px;
}

.flatpickr-time .flatpickr-am-pm {
    color: #E67E22;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 15px;
    height: 50px !important;
}

.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
    background: #E67E22 !important;
    color: #fff !important;
}

/* 数字输入框 */
.numInputWrapper {
    height: 50px !important;
}

.numInputWrapper:hover {
    background: #fff3e0;
}

.numInputWrapper span {
    border-color: #E67E22;
    height: 50%;
}

.numInputWrapper span:hover {
    background: #E67E22;
}

.numInputWrapper span.arrowUp:after {
    border-bottom-color: #E67E22;
}

.numInputWrapper span.arrowDown:after {
    border-top-color: #E67E22;
}

.numInputWrapper span:hover.arrowUp:after {
    border-bottom-color: #fff;
}

.numInputWrapper span:hover.arrowDown:after {
    border-top-color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .flatpickr-calendar {
        max-width: 95vw !important;
    }
    
    .flatpickr-day {
        height: 42px !important;
        line-height: 42px !important;
        font-size: 14px;
    }
}

/* 信息汇总 */
.info-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 0;
}

.summary-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item:hover {
    background: #fafafa;
}

.summary-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.summary-value {
    font-size: 15px;
    color: #000;
    font-weight: 500;
    line-height: 1.6;
}

/* 按钮组 */
.fortune-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    flex: 1;
    padding: 16px;
    border: 2px solid;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #E67E22;
    color: #fff;
    border-color: #E67E22;
}

.btn-primary:hover {
    background: #D35400;
    border-color: #D35400;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #E67E22;
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #E67E22;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 加载动画 - 骨架屏效果 */
.fortune-loading {
    text-align: center;
    padding: 60px 20px;
}

.skeleton-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 16px;
}

.skeleton-line.title {
    height: 32px;
    width: 60%;
    margin: 0 auto 30px;
}

.skeleton-line.short {
    width: 80%;
}

.skeleton-line.medium {
    width: 90%;
}

.skeleton-line.long {
    width: 95%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading-text {
    font-size: 14px;
    color: #999;
    margin: 30px 0 0 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* 结果展示 */
.fortune-result {
    line-height: 1.8;
    color: #333;
}

.result-content {
    white-space: pre-wrap;
    font-size: 15px;
    padding: 24px;
    background: #fafafa;
    border: 2px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.8;
}

.remaining-count {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remaining-count strong {
    color: #E67E22;
    font-size: 18px;
    font-weight: 700;
}

/* 错误提示 */
.fortune-error {
    padding: 20px;
    background: #fff5f5;
    border: 2px solid #ff5555;
    border-left-width: 6px;
    color: #cc0000;
    margin-bottom: 20px;
    font-weight: 500;
}

/* WooCommerce产品推荐 */
.product-recommendations {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 2px solid #E67E22;
    border-top-width: 4px;
}

.product-recommendations h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #E67E22;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.product-recommendations-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: -10px 0 25px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    border-color: #E67E22;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(230, 126, 34, 0.95);
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #E67E22;
    margin: 10px 0;
}

.product-price del {
    font-size: 14px;
    color: #999;
    margin-right: 8px;
}

.product-button {
    display: inline-block;
    padding: 10px 24px;
    background: #E67E22;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #E67E22;
    margin-top: 10px;
}

.product-button:hover {
    background: #D35400;
    border-color: #D35400;
    color: #fff;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: #E67E22;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.products-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 产品推荐骨架屏 */
.products-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-skeleton {
    background: #fff;
    border: 2px solid #e0e0e0;
    overflow: hidden;
}

.product-skeleton-image {
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.product-skeleton-info {
    padding: 20px;
}

.product-skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 12px;
}

.product-skeleton-line.title {
    height: 20px;
    width: 80%;
}

.product-skeleton-line.price {
    height: 24px;
    width: 40%;
}

.product-skeleton-line.button {
    height: 38px;
    width: 60%;
    margin: 15px auto 0;
}

@media (max-width: 1024px) {
    .products-grid,
    .products-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid,
    .products-skeleton {
        grid-template-columns: 1fr;
    }
    
    .product-recommendations {
        padding: 20px;
    }
}

/* ========================================
   登录/注册表单样式
   ======================================== */

.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.auth-tab:hover {
    color: #E67E22;
}

.auth-tab.active {
    color: #E67E22;
    border-bottom-color: #E67E22;
}

.auth-form-wrapper {
    display: none;
}

.auth-form-wrapper.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-label {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form-input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.auth-form-input:focus {
    outline: none;
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-remember label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.auth-agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #fafafa;
    border: 2px solid #e0e0e0;
}

.auth-agreement-item {
    display: flex;
    align-items: start;
    gap: 10px;
}

.auth-agreement-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-agreement-item label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.auth-agreement-link {
    color: #E67E22;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.auth-agreement-link:hover {
    color: #D35400;
}

.auth-submit-btn {
    padding: 16px;
    background: #E67E22;
    color: #fff;
    border: 2px solid #E67E22;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-btn:hover:not(:disabled) {
    background: #D35400;
    border-color: #D35400;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 第三方登录分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Google登录按钮 */
.auth-google-btn {
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    color: #444;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-google-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-google-btn svg {
    width: 20px;
    height: 20px;
}

.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-error {
    padding: 12px 16px;
    background: #fff5f5;
    border: 2px solid #ff5555;
    border-left-width: 4px;
    color: #cc0000;
    font-size: 14px;
    font-weight: 500;
}

.auth-success {
    padding: 12px 16px;
    background: #f0fff4;
    border: 2px solid #22c55e;
    border-left-width: 4px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
}

/* 协议弹窗 */
.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.agreement-modal.active {
    display: flex;
}

.agreement-content {
    background: #fff;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.agreement-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-close:hover {
    background: #E67E22;
    color: #fff;
    border-color: #E67E22;
}

.agreement-content h2 {
    color: #E67E22;
    margin-top: 0;
}

.agreement-content h3 {
    color: #333;
    margin-top: 20px;
}

.agreement-content ul {
    line-height: 1.8;
}

/* 协议骨架屏 */
.agreement-skeleton {
    padding: 20px 0;
}

.agreement-skeleton-title {
    height: 32px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 30px;
}

.agreement-skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 16px;
}

.agreement-skeleton-line.subtitle {
    height: 24px;
    width: 40%;
    margin-top: 30px;
    margin-bottom: 20px;
}

.agreement-skeleton-line.short {
    width: 85%;
}

.agreement-skeleton-line.medium {
    width: 92%;
}

.agreement-skeleton-line.long {
    width: 95%;
}

.agreement-skeleton-block {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
    }
    
    .agreement-content {
        padding: 30px 20px;
    }
    
    .agreement-skeleton-title {
        width: 80%;
    }
    
    .agreement-skeleton-line.subtitle {
        width: 60%;
    }
}

/* ========================================
   用户账号图标样式
   ======================================== */

.user-account-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.user-account-icon svg {
    transition: all 0.3s ease;
}

.user-account-icon:hover {
    border-color: #E67E22;
    color: #E67E22;
    background: rgba(230, 126, 34, 0.05);
}

.user-account-icon.logged-in {
    border-color: #E67E22;
    color: #E67E22;
}

.user-account-icon.logged-in:hover {
    background: #E67E22;
    color: #fff;
}

.user-account-icon.logged-in:hover svg {
    filter: brightness(0) invert(1);
}

.user-account-icon .user-account-name {
    white-space: nowrap;
}

/* 图标样式变体 */
.user-account-icon.icon-only {
    padding: 10px;
    border-radius: 50%;
}

.user-account-icon.icon-only .user-account-name {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .user-account-icon .user-account-name {
        display: none;
    }
    
    .user-account-icon {
        padding: 10px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fortune-modal {
        width: 95%;
        max-height: 92vh;
        max-width: 95vw;
    }

    .fortune-header {
        padding: 28px 24px 20px;
    }

    .fortune-title {
        font-size: 24px;
    }

    .fortune-content {
        padding: 28px 24px;
    }

    .fortune-buttons {
        flex-direction: column;
    }

    .step-line {
        width: 30px;
    }

    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .topic-card {
        padding: 18px 20px;
    }
}

/* 滚动条样式 */
.fortune-modal::-webkit-scrollbar,
.result-content::-webkit-scrollbar {
    width: 10px;
}

.fortune-modal::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.fortune-modal::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb {
    background: #ccc;
}

.fortune-modal::-webkit-scrollbar-thumb:hover,
.result-content::-webkit-scrollbar-thumb:hover {
    background: #E67E22;
}
