/* Flavor Theme 配置组件样式 - 使用主题CSS变量 */

.flavor-notice-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.flavor-notice-overlay.show {
    opacity: 1;
    visibility: visible;
}

.flavor-notice-popup {
    background: var(--fs-background-third-color, #1a1a2e);
    border-radius: 0.75rem;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    margin: auto;
}

.flavor-notice-overlay.show .flavor-notice-popup {
    transform: scale(1) translateY(0);
}

.flavor-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--fs-primary-color);
    border-bottom: 1px solid var(--fs-seperator-color);
}

.flavor-notice-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fs-text-color);
}

.flavor-notice-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--fs-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.flavor-notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.flavor-notice-body {
    padding: 1.5rem 1.25rem;
    max-height: 50vh;
    overflow-y: auto;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--fs-text-fourth-color);
}

.flavor-notice-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.flavor-notice-body a {
    color: var(--fs-primary-color);
    text-decoration: none;
}

.flavor-notice-body a:hover {
    text-decoration: underline;
}

.flavor-notice-footer {
    padding: 1rem 1.25rem;
    background: var(--fs-background-fourth-color);
    border-top: 1px solid var(--fs-seperator-color);
    display: flex;
    justify-content: center;
}

.flavor-notice-btn {
    padding: 0.625rem 2rem;
    background: var(--fs-primary-color);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--fs-text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.flavor-notice-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 广告容器样式 */
.flavor-ad-container {
    display: none;
    margin: var(--fs-spacing) 0;
    text-align: center;
}

.flavor-ad-link {
    display: inline-block;
    transition: transform 0.2s;
}

.flavor-ad-link:hover {
    transform: scale(1.02);
}

.flavor-ad-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flavor-ad-banner {
    width: 100%;
    padding: var(--fs-spacing);
    background: var(--fs-background-fourth-color);
    border-radius: 0.5rem;
}

.flavor-ad-sidebar {
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .flavor-notice-popup {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }
    
    .flavor-notice-body {
        max-height: 60vh;
    }
}

/* Logo 容器和文本样式 */
.flavor-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.flavor-logo-container .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fs-primary-color);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.t-p-side .flavor-logo-container .logo-text {
    font-size: 1.125rem;
}

.footer .flavor-logo-container .logo-text {
    font-size: 1.5rem;
    color: var(--fs-text-fourth-color);
}

.section-search-box .flavor-logo-container .logo-text {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .flavor-logo-container .logo-text {
        font-size: 1rem;
    }
    
    .section-search-box .flavor-logo-container .logo-text {
        font-size: 1.5rem;
    }
}

/* 弹窗广告样式 */
.flavor-ad-popup {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.flavor-ad-popup img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.flavor-ad-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.flavor-ad-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 公告按钮禁用样式 */
.flavor-notice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
