/* --- 1. 独立按钮组件 (Specific Buttons) --- */
.btn-logout {
    background-color: rgba(255, 59, 48, 0.1); 
    color: #ff3b30; 
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #ff3b30; 
    color: #ffffff;
}

body.dark-mode .btn-logout {
    background-color: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}

body.dark-mode .btn-logout:hover {
    background-color: #ff453a;
    color: #ffffff;
}

/* --- 2. 标签与杂项 (Tags & Misc) --- */
.plat-tag {
    padding: 8px 20px;
    border-radius: 99px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.plat-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.plat-tag.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--primary-hue), 70%, 50%, 0.3);
}

mark {
    background-color: var(--primary-fade);
    color: var(--primary-color);
    padding: 0 2px;
    border-radius: 4px;
}

.icon-svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-right: 6px;
}

/* --- 3. 宏观布局 (Layout Blocks) --- */
.sidebar {
    width: 260px;
    background: var(--bg-glass);
    border-right: 1px solid var(--border);
    padding: 50px 24px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(30px);
    flex-shrink: 0;
}

.sidebar-title {
    margin-bottom: 40px;
    padding-left: 10px;
    font-weight: 800;
    font-size: 24px;
}

.sidebar-footer {
    margin-top: auto !important;
}

.main-view {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding: 30px 50px;
    scroll-behavior: smooth;
}

/* --- 4. 顶部工具栏 (Header Bar) --- */
.header-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-wrap {
    padding: 12px 20px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 450px;
}

#search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    flex: 1;
    font-size: 15px;
    color: var(--text-main);
    caret-color: var(--text-main);
}

#search-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.weather-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.auth-btn {
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-text {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
}

/* --- 5. 导航系统 (Navigation) --- */
.nav-btn {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-btn:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.nav-btn.active {
    background: var(--primary-fade);
    color: var(--primary-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    padding-top: 12px;
    z-index: 100;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-sub);
    cursor: pointer;
    width: 60px;
    font-weight: 600;
}

.tab-btn.active {
    color: var(--primary-color);
}

.footer-icp {
    margin-top: 40px;
    text-align: center;
    color: var(--text-sub);
    font-size: 12px;
    padding-bottom: 20px;
}

/* --- 6. 视图切换与结构 (Views) --- */
.page {
    display: none;
    animation: slideUp 0.4s ease;
}

.page.active {
    display: block;
}

.page-title {
    margin-bottom: 20px;
}

/* --- 7. 横幅与区块 (Banners & Sections) --- */
.banner {
    height: 200px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-item {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.banner-item.active {
    opacity: 1;
}

.banner-txt {
    text-align: left;
    max-width: 80%;
}

.banner-txt h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.banner-txt p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s ease 0.2s;
}

.banner-item.active .banner-txt p {
    transform: translateY(0);
    opacity: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.section-title {
    font-size: 20px;
    margin: 0;
}

.section-subtitle {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-sub);
}

.view-all-link {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.h-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 5px 5px 30px 5px;
    scroll-snap-type: x mandatory;
}

/* --- 8. 资源卡片 (Resource Cards) --- */
.card {
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 160px;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
    transform: scale(0.98);
}

.icon-box {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    font-size: 36px;
    color: #fff;
}

.c-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.c-sub {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.get-btn {
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* 爱心收藏按钮基础样式 */
.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-btn:hover {
    transform: scale(1.1);
}

/* 移动端专属微调：把爱心挪到 GET 按钮的左边，防止重叠 */
@media (max-width: 768px) {
    .fav-btn {
        top: 50%;
        right: 80px; 
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .fav-btn:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

/* --- 9. 分类与网格 (Category & Grid) --- */
.type-switch {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 16px;
    width: fit-content;
    margin-bottom: 24px;
}

.type-opt {
    padding: 10px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    transition: 0.2s;
}

.type-opt.active {
    background: var(--bg-body);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.platform-bar.hidden {
    display: none !important;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-fade);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-info {
    font-weight: 600;
    color: var(--text-sub);
    padding: 0 10px;
}

/* --- 10. 高级个人中心 (Premium Profile) --- */
#pg-profile {
    position: relative;
    padding: 0;
    margin: -30px -50px; 
    min-height: calc(100vh - 100px);
}

@media (max-width: 768px) {
    #pg-profile { margin: -15px -15px -100px -15px; }
}

.profile-ambient-bg {
    position: absolute;
    top: 0; left: 0; right: 0; height: 350px;
    background: linear-gradient(180deg, rgba(var(--primary-hue), 70%, 50%, 0.15) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.profile-pro-layout {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px var(--glass-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper-pro {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.avatar-img-pro {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-badge-pro {
    position: absolute;
    bottom: 0; right: 0;
    width: 28px; height: 28px;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.profile-name-pro {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.profile-role-pro {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: var(--primary-fade);
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-bio-pro {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 20px auto;
}

.profile-stats-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    width: 100%;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.stat-item-pro {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-num-pro {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.stat-label-pro {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

.profile-action-bar {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.btn-pro[style*="display: block"] {
    display: flex !important;
}

.btn-pro {
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    align-items: center;
    justify-content: center;
}

.btn-pro.primary {
    background: var(--text-main);
    color: var(--bg-body);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-pro.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }

.btn-pro.secondary {
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-pro.secondary:hover { background: var(--border); }

/* --- 11. iOS 设置级列表 (iOS Settings List) --- */
.profile-settings-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-group-pro {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.setting-item-pro {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.setting-item-pro:last-child {
    border-bottom: none;
}

.setting-item-pro:hover {
    background: var(--bg-body);
}

.setting-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
}

.setting-icon-box .apple-icon {
    width: 20px !important;
    height: 20px !important;
}

.setting-text-pro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* 🌟 核心魔法 1：打破 Flex 默认宽度限制，强制允许盒子缩小，彻底解决撑爆和高亮异常 */
    padding-right: 15px; /* 保持与右侧箭头的呼吸感 */
}

/* 🌟 核心魔法 2：当屏幕太小时，超长的文字会自动变成优雅的 "..."，绝不溢出 */
.setting-text-pro h4,
.setting-text-pro p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setting-text-pro h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.setting-text-pro p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
}

.setting-arrow {
    color: var(--text-sub);
    font-size: 16px;
    opacity: 0.5;
    font-family: monospace;
    transition: transform 0.2s ease;
    flex-shrink: 0; /* 🌟 核心魔法 3：无论文字多长，绝对不让箭头被挤压变形 */
}

.setting-item-pro:hover .setting-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.guest-hint-item:hover { background: rgba(255, 149, 0, 0.05); }
.danger-item:hover { background: rgba(255, 59, 48, 0.05); }
.danger-item .setting-arrow { display: none; } 

/* 专属图标 */
.icon-security { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.icon-message { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
.icon-crown { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.icon-support { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
.icon-about { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); }
.icon-sparkle { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3C/svg%3E"); }

/* --- 12. 提交与历史记录 (History & Actions) --- */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-sub);
    display: none;
}

.status-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    z-index: 5;
}

.status-overlay.pending { background: #f1c40f; }
.status-overlay.published { background: #34c759; }
.status-overlay.rejected { background: #ff3b30; }

.user-delete-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 59, 48, 0.8);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.user-delete-btn:hover {
    background: #ff3b30;
    transform: scale(1.05);
}

.fab {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    box-shadow: 0 8px 25px rgba(var(--primary-hue), 70%, 50%, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s ease-in-out;
}

.fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(var(--primary-hue), 70%, 50%, 0.4);
}

.fab:active {
    transform: scale(0.95);
}

/* --- 13. 本地专属弹窗补充 (Local Modals) --- */
.modal-cancel {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-sub);
    cursor: pointer;
    text-align: center;
}

.modal-action {
    margin-top: 25px;
}

.pwd-box {
    border: 1px dashed var(--green-pwd);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 16px;
    background: rgba(52, 199, 89, 0.05);
    font-family: monospace;
}

.copy-tip {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 15px;
    display: none;
}

.tip-modal-box {
    max-width: 300px;
    padding-top: 35px;
}

.tip-icon {
    font-size: 48px;
    margin-bottom: 15px;
    text-align: center;
}

.tip-title, .notify-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.tip-message, .notify-message {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

.notify-modal {
    max-width: 320px;
    padding: 35px 25px;
}

.notify-icon {
    font-size: 52px;
    margin-bottom: 15px;
    text-align: center;
}

.notify-btn { width: 100%; }
#notify-ok-btn.success { background: #34c759; }
#notify-ok-btn.error { background: #ff3b30; }

.profile-edit-modal { max-width: 400px; }
.form-top-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.avatar-upload { border-radius: 50%; }

.profile-edit-note {
    font-size: 12px;
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 20px;
}

.form-error-text {
    color: #ff3b30;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    margin-top: 5px;
    min-height: 1.2em;
    display: none;
}

/* --- 14. 动态头像框对齐系统 (Avatar Frames) --- */
.avatar-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px; 
}

.avatar-container img:not(.avatar-frame) {
    border-radius: 50%;
    object-fit: cover;
}

.avatar-frame {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 138% !important;  
    height: 138% !important; 
    pointer-events: none !important;
    z-index: 10 !important;
}

.main-avatar-wrapper {
    position: relative !important;
    width: 90px;
    height: 90px;
    margin: 0 auto 15px; 
    overflow: visible !important; 
}

#profile-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
}

.header-avatar-img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid var(--border) !important;
    object-fit: cover !important;
    display: block;
}

/* --- 15. 响应式系统 (Responsive Adjustments) --- */
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex !important; }
    
    .header-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .controls-group {
        width: auto;
        justify-content: flex-end;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .mobile-nav { display: flex; }
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .main-view { padding: 15px 15px 100px 15px; }
    
    .header-bar { gap: 10px; margin-bottom: 15px; }
    .search-wrap { width: 100%; height: 40px; }
    
    .controls-group {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
    }
    
    .weather-panel {
        padding: 5px 10px;
        font-size: 12px;
        height: 36px;
        max-width: 45%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .controls-group>div:last-child { gap: 8px; }
    
    #home-apps, #home-disk, #home-webs {
        flex-direction: column !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        gap: 15px !important;
    }
    
    .card {
        min-width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
    
    .icon-box {
        margin-bottom: 0 !important;
        margin-right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    
    .card-content { flex: 1 !important; }
    
    .get-btn {
        margin-top: 0 !important;
        margin-left: 10px !important;
        padding: 6px 16px !important;
        font-size: 12px !important;
    }
    
    .platform-bar { justify-content: space-between; }
    .plat-tag {
        padding: 8px 12px !important;
        flex: 1;
        justify-content: center;
        margin: 0 4px;
        font-size: 12px !important;
    }
    
    .grid-list { grid-template-columns: 1fr; gap: 15px; }
    
    .fab { right: 20px; bottom: 110px; }
    
    .section-header { margin: 20px 0 15px; }
    
    .profile-layout {
        flex-direction: column;
        padding: 0;
        align-items: stretch; 
    }
    
    .profile-sidebar, .profile-main {
        width: 100%; 
    }
    
    .setting-group {
        margin-bottom: 15px;
    }
    
    .profile-edit-btn, .admin-entry-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}