/* 主样式文件 - 引入所有组件和工具样式 */

/* 工具样式 */
@import './utils/variables.css';
@import './utils/mixins.css';

/* 组件样式 */
@import './components/navbar.css';
@import './components/hero.css';
@import './components/products.css';
@import './components/pages.css';
@import './components/footer.css';

/* 通知弹窗样式 */
.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 12px 20px;
    z-index: 1000;
    animation: floatDown 0.8s ease-out, float 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

@keyframes floatDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.notification-banner.hidden {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.notification-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-close span {
    margin-top: -2px;
}

/* 全局样式重置和基础样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通用链接样式 */
a {
    color: var(--text-primary);
    text-decoration: none;
}

/* 选择文本样式 */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* 页面标题样式 */
.page-header {
    padding: 8rem 4rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
}

.page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-primary);
}

/* 表单样式 */
input,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* 响应式页面标题 */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 2rem 3rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
    font-size: 1rem;
    }
}

/* 认证弹窗样式 */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: var(--bg-card, #1a1a24);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: var(--border-radius, 16px);
    width: 90%;
    max-width: 420px;
    padding: 2rem;
    z-index: 1;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
    padding-bottom: 0.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.7rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.auth-tab.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.auth-gift {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form input {
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
}

.auth-submit {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-submit:hover {
    opacity: 0.9;
}

.auth-tip {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-tip a {
    color: var(--primary-color);
}

.auth-message {
    margin-top: 1rem;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.auth-message.error {
    display: block;
    background: rgba(220, 38, 38, 0.15);
    color: #ff7b7b;
}

.auth-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

@media (max-width: 480px) {
    .auth-modal-content {
        padding: 1.5rem 1rem;
    }
}
