/* public/css/modern.css - 最终悬浮菜单版 */

/* --- 1. 核心配色与全局重置 --- */
:root {
    --c-primary: #9E6947;     /* 深棕：用于标题、主按钮 */
    --c-secondary: #F7CB6C;   /* 暖金：用于强调、悬停状态 */
    --c-light: #FFEB8C;       /* 浅黄：用于背景光晕、次要装饰 */
    --c-bg: #FCFAF8;          /* 极浅的米白背景，营造高级感 */
    --c-text-main: #2C1E16;   /* 极深的棕色文字，比纯黑更柔和 */
    --c-text-sub: #826B5D;    /* 次要文字颜色 */
}

body {
    background-color: var(--c-bg) !important;
    color: var(--c-text-main) !important;
    font-family: 'MiSans', "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* 隐藏 BSS 默认烦人的外边距 */
.wrapper, .content-wrapper { background: transparent !important; margin: 0 !important; padding: 0 !important; border: none !important; }

/* --- 2. 现代极简导航栏 (非主页时使用) --- */
.taoisa-header {
    /* 【修改】默认情况下不再固定定位 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 40px;
    background: rgba(252, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(158, 105, 71, 0.08);
}

.taoisa-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-primary);
    text-decoration: none !important;
    letter-spacing: 1px;
}
.taoisa-header .taoisa-logo:hover {
    color: var(--c-primary) !important;
    opacity: 0.8;
}

.taoisa-nav-right {
    display: flex;
    align-items: center;
}

.taoisa-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0; padding: 0;
}
.taoisa-nav-links a {
    color: var(--c-text-sub);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.3s;
    position: relative;
}
.taoisa-nav-links a:hover,
.taoisa-nav-links a.active {
    color: var(--c-primary);
}
.taoisa-nav-links a.active::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background-color: var(--c-secondary); border-radius: 50%;
}

.taoisa-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
    padding-left: 40px;
    border-left: 1px solid rgba(158, 105, 71, 0.15);
    list-style: none;
    margin-top: 0; margin-bottom: 0;
}
.taoisa-tools a { color: var(--c-text-sub) !important; text-decoration: none; font-weight: 600; }
.taoisa-tools a:hover { color: var(--c-secondary) !important; }
.taoisa-tools img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 2px 8px rgba(158,105,71,0.2); }

/* --- 3. 【新增】主页专属样式 --- */
/* 当 body 有 is-home class 时，隐藏常规头栏 */
body.is-home .taoisa-header {
    display: none;
}

/* 右上角悬浮用户区 */
.floating-user-area {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    animation: fadeInDown 0.6s ease-out;
}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.floating-user-area .nav-links-floating {
    display: flex;
    align-items: center;
    gap: 16px;
}
.floating-user-area .nav-links-floating a {
    color: var(--c-text-sub);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.floating-user-area .nav-links-floating a:hover {
    color: var(--c-primary);
}
.floating-user-area .btn-register-float {
    background-color: white;
    color: var(--c-primary) !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.floating-user-area .btn-register-float:hover {
    background-color: var(--c-primary-light);
}

/* 适配 BSS 用户菜单 */
.floating-user-area .taoisa-tools {
    border: none;
    padding: 0;
    margin: 0;
    gap: 16px;
}

/* --- 4. 沉浸式首屏 (Hero) 及其他 --- */
.hero-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 【修改】不再需要 padding-top */
    box-sizing: border-box;
}

.hero-glow {
    position: absolute;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--c-light) 0%, rgba(255, 235, 140, 0) 70%);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--c-primary);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.4rem;
    color: var(--c-text-sub);
    font-weight: 400;
    margin-bottom: 50px;
}

.ip-capsule {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--c-text-main);
    box-shadow: 0 10px 30px rgba(158, 105, 71, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 50px;
    border: 1px solid rgba(158, 105, 71, 0.05);
}
.ip-capsule:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(158, 105, 71, 0.15);
    border-color: var(--c-secondary);
}

.btn-modern {
    padding: 16px 42px;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-modern-primary {
    background-color: var(--c-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(158, 105, 71, 0.3);
}
.btn-modern-primary:hover { background-color: #8A5A3C; transform: translateY(-3px); color: white; }

.btn-modern-secondary {
    background-color: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}
.btn-modern-secondary:hover { background-color: var(--c-primary); color: white; transform: translateY(-3px); }

/* --- 5. 内容模块 & 卡片 --- */
.content-container { max-width: 1100px; margin: 0 auto; padding: 100px 20px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--c-text-main); margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--c-text-sub); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.modern-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(44, 30, 22, 0.03);
    transition: all 0.4s ease;
    text-align: center;
}
.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(158, 105, 71, 0.12);
}

.feature-icon {
    width: 64px; height: 64px; background: var(--c-light); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 20px; color: var(--c-primary);
}

.modern-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; color: var(--c-text-main); }
.modern-card p { font-size: 1rem; color: var(--c-text-sub); line-height: 1.6; }

.staff-avatar { width: 90px; height: 90px; border-radius: 50%; margin-bottom: 15px; border: 3px solid var(--c-secondary); padding: 3px; background: white; object-fit: cover;}
.role-badge { display: inline-block; padding: 4px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; }
.role-owner { background: #ffeaea; color: #ff4d4f; }
.role-admin { background: #FFF7E6; color: #FAAD14; }
.role-tech { background: #E6F7FF; color: #1890FF; }

.screenshot-item { height: 250px; border-radius: 24px; overflow: hidden; position: relative; }
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.screenshot-item:hover img { transform: scale(1.05); }

.modern-footer { text-align: center; padding: 60px 0; font-size: 0.9rem; color: #A69B95; }