/* 优装网 - 前台公共样式 */
:root {
    --primary: #e85d04;
    --primary-dark: #c44d00;
    --primary-light: #fff3e0;
    --secondary: #1e293b;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e9ecef;
    --text: #212529;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --success: #198754;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.25s ease;
}

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

html, body {
    min-width: 1080px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* 顶部导航 */
.navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    height: 64px;
}

.navbar-logo img {
    height: 140px;
    width: auto;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

.city-selector:hover { border-color: var(--primary); color: var(--primary); }
.navbar-nav .city-selector { margin-right: 20px; }

.btn-login {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover { background: var(--primary-dark); }

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面区块 */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.section-more:hover { color: var(--primary); }

/* Banner轮播 */
.banner-swiper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 420px;
    background: #f0f0f0;
}

.banner-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 快捷入口 */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.entry-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.entry-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.entry-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.entry-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.entry-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* 效果图卡片 */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.img-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.img-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.img-card-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.img-card-body {
    padding: 14px;
}

.img-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
}

/* 公司卡片 */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.company-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
}

.company-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.company-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* 设计师卡片 */
.designer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.designer-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.designer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.designer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    background: var(--bg);
}

.designer-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.designer-position {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
}

/* 文章卡片 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.article-cover {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.article-info p {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 筛选栏 */
.filter-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-row:last-child { margin-bottom: 0; }

.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    width: 60px;
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-tag:hover, .filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 预约弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

/* 表单 */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    color: var(--text);
    background: #fff;
}

.form-control:focus { border-color: var(--primary); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-submit:hover { background: var(--primary-dark); }

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    white-space: nowrap;
}

.toast.success { background: var(--success); }
.toast.error { background: #dc3545; }
.toast.warning { background: #f59e0b; }

@keyframes toastIn {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* 表单字段错误状态 */
.input-error {
    border-color: #ef4444 !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

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

/* 搜索/筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    color: var(--text);
    background: #fff;
}

.search-input:focus { border-color: var(--primary); }

.filter-bar select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.filter-bar select:focus { border-color: var(--primary); }

/* 文章列表项 (alias for article-card) */
.article-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border);
}

.article-item .article-cover {
    width: 140px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
}

.article-item .article-content { flex: 1; min-width: 0; }

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

/* 公司卡片内部元素 */
.company-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.company-desc, .company-intro {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

/* 设计师经验 */
.designer-exp {
    font-size: 12px;
    color: var(--text-muted);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p { font-size: 15px; }

/* 分页按钮 (inline button elements) */
.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination span { line-height: 36px; color: var(--text-muted); }

/* 页脚 (class-based, used in HTML as <footer class="footer">) */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.footer-section a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-section a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* 地区选择器弹窗 */
.region-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.region-picker-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.region-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 16px;
}

.region-picker-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
}

.region-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.region-tab:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.region-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.region-picker-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    min-height: 320px;
    max-height: 320px;
}

.region-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.region-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* 用户区域 */
#userArea {
    display: flex;
    align-items: center;
    gap: 10px;
}

#userArea span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ===== 响应式：窄屏横向滚动，不压缩变形 ===== */
.navbar {
    overflow-x: auto;
}
.navbar-inner {
    min-width: max-content;
}

/* ===== 城市选择器（字母索引）===== */
.city-modal {
    max-width: 600px;
    padding: 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.city-modal .modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    flex-shrink: 0;
}
.city-modal .modal-body {
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.city-modal-search { width:100%; padding:8px 12px; border:1.5px solid var(--border); border-radius:8px; font-size:13px; outline:none; margin-bottom:12px; box-sizing:border-box; flex-shrink:0; }
.city-modal-search:focus { border-color:var(--primary); }
.city-letters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; flex-shrink:0; }
.city-letter-btn { width:26px; height:26px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; border-radius:4px; cursor:pointer; color:var(--text-muted); border:none; background:none; transition:var(--transition); }
.city-letter-btn:hover, .city-letter-btn.active { background:var(--primary); color:#fff; }
.city-list-scroll { flex:1; overflow-y:auto; min-height:0; }
.city-letter-section { margin-bottom:12px; }
.city-letter-title { font-size:12px; font-weight:700; color:var(--primary); margin-bottom:6px; }
.city-list-row { display:flex; flex-wrap:wrap; gap:6px; }
.city-item { padding:5px 12px; border-radius:6px; font-size:13px; cursor:pointer; border:1px solid var(--border); transition:var(--transition); }
.city-item:hover { border-color:var(--primary); color:var(--primary); }
.city-item.selected { background:var(--primary); color:#fff; border-color:var(--primary); }

/* Footer样式（用于injectFooter注入的统一底部栏） */
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:32px; }
.footer-brand-logo { font-size:22px; font-weight:700; color:#fff; margin-bottom:12px; }
.footer-brand-desc { font-size:13px; line-height:1.8; color:#cbd5e1; }
.footer-col-title { font-size:14px; font-weight:600; color:#fff; margin-bottom:12px; }
.footer-links { display:flex; flex-direction:column; gap:8px; }
.footer-links a, .footer-links span { font-size:13px; color:#94a3b8; text-decoration:none; transition:color .2s; }
.footer-links a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:20px; text-align:center; font-size:12px; color:#64748b; }

/* ===== 底部浮动横幅表单 ===== */
.float-popup {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(90deg, #1e293b 0%, #2d3f55 40%, #1e293b 100%);
    box-shadow: 0 -6px 32px rgba(0,0,0,0.25);
    border-top: 2px solid rgba(232,93,4,0.9);
    overflow: visible;
    z-index: 9998;
    transition: bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}

.float-popup.show {
    bottom: 0;
    box-shadow: 0 -10px 40px rgba(232,93,4,0.25), 0 -6px 32px rgba(0,0,0,0.25);
}

.float-house-runner {
    display: none;
}

.float-wave-text {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: none;
    white-space: nowrap;
}

.float-wave-text span {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    animation: waveChar 1.2s ease-in-out infinite;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

@keyframes waveChar {
    0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
    50%       { transform: rotate(var(--r, 0deg)) translateY(-10px); }
}

.float-popup.show::before {
    animation: floatPopupSweep 2.4s ease-out 1;
}

.float-popup-close {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.float-popup-close.visible {
    display: flex;
}

.float-popup-close:hover {
    background: rgba(232,93,4,0.9);
    border-color: rgba(232,93,4,0.9);
}

.float-popup-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 60px 32px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.float-popup-slogan {
    flex-shrink: 0;
    color: #fff;
    line-height: 1.3;
    border-right: 1px solid rgba(255,255,255,0.15);
    padding-right: 24px;
}

.float-slogan-main {
    font-size: 20px;
    font-weight: 700;
}

.float-slogan-sub {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.float-popup-fields {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.float-field {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.float-field::placeholder {
    color: rgba(255,255,255,0.45);
}

.float-field:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
}

.float-field option {
    background: #1e293b;
    color: #fff;
}

.float-submit-btn {
    flex-shrink: 0;
    padding: 11px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.float-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.float-popup.show .float-slogan-sub {
    animation: floatSloganPulse 1.2s ease-in-out 2;
}

.float-popup.show .float-submit-btn {
    animation: floatBtnPulse 1.1s ease-in-out 2;
}

@keyframes floatPopupSweep {
    0% { left: -35%; opacity: 0; }
    15% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

@keyframes floatSloganPulse {
    0%, 100% { transform: scale(1); text-shadow: none; }
    50% { transform: scale(1.06); text-shadow: 0 0 14px rgba(232,93,4,0.6); }
}

@keyframes floatBtnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(232,93,4,0); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(232,93,4,0.25); }
}

@keyframes houseHop {
    0%   { transform: translateX(0)            translateY(0);     }
    10%  { transform: translateX(10vw)         translateY(-18px); }
    20%  { transform: translateX(20vw)         translateY(0);     }
    30%  { transform: translateX(30vw)         translateY(-18px); }
    40%  { transform: translateX(40vw)         translateY(0);     }
    50%  { transform: translateX(50vw)         translateY(-18px); }
    60%  { transform: translateX(60vw)         translateY(0);     }
    70%  { transform: translateX(70vw)         translateY(-18px); }
    80%  { transform: translateX(80vw)         translateY(0);     }
    90%  { transform: translateX(90vw)         translateY(-18px); }
    100% { transform: translateX(calc(100vw + 44px)) translateY(0); }
}

/* Personal Center Portal Layout */
.portal-wrap {
    max-width: 1100px;
    margin: 18px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.portal-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 64px;
    align-self: flex-start;
}

.sidebar-item {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { color: #4caf50; background: #f1f8f1; }
.sidebar-item.active { background: #4caf50; color: #fff; font-weight: 600; }

.portal-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 28px 0px 28px;
}

.pagination-wrap { display:flex; align-items:center; justify-content:flex-end; gap:4px; padding:16px 0 4px; }
.page-btn { min-width:32px; height:32px; padding:0 10px; border:1px solid #e2e8f0; border-radius:6px; background:#fff; font-size:13px; cursor:pointer; color:#374151; transition:all .15s; display:inline-flex; align-items:center; justify-content:center; }
.page-btn:hover:not(:disabled) { border-color:var(--primary); color:var(--primary); background:#fff8f5; }
.page-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); font-weight:600; }
.page-btn:disabled { color:#d1d5db; cursor:not-allowed; background:#f9fafb; }
