/* === 基础重置 === */

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

/* === 页面主体 === */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 底部导航 === */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    min-width: 50px;
}

.nav-item.active {
    color: #667eea;
}

.nav-item:active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* === 玻璃卡片基础 === */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.glass-card-padded {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.glass-card-clickable {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    padding: 18px;
}

.glass-card-clickable:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.nav-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    gap: 0;
}

.nav-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.nav-tab:last-child {
    background: transparent;
    color: #667eea;
}

.nav-tab:last-child:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* === 容器 === */

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* === 返回按钮 === */

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-btn:active {
    transform: scale(0.95);
    background: white;
}

.back-btn:hover {
    background: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.back-icon {
    font-size: 18px;
}

/* === 文章样式 === */

.article-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    word-break: break-word;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
}

.meta-icon {
    font-size: 16px;
}

.meta-item a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
    white-space: pre-wrap;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 20px 0 10px;
    color: #667eea;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

/* === 搜索框 === */

.search-container {
    padding: 0 15px;
    margin: 15px 0 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 12px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 0 10px;
    background: transparent;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.search-box button:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* === 卡片列表 === */

.card-list {
    display: grid;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    word-break: break-word;
}

.card-title-flex {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc-3 {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 8px;
}

.card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

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

.recipe-content {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.recipe-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.recipe-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recipe-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

.new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* === 玻璃列表 === */

.glass-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
    background: white;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background: #f8f9ff;
}

/* === 菜单行（我的页面） === */

.list-item:has(> .menu-icon) {
    display: flex;
    align-items: center;
    padding: 14px 16px;
}

.menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 12px;
}

.menu-text {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.menu-arrow {
    color: #ccc;
    font-size: 20px;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 8px;
}

.menu-status {
    flex-shrink: 0;
    font-size: 13px;
    margin-left: 8px;
}


.list-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-male {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.avatar-female {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.avatar-neutral {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.list-name {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.list-meta {
    color: #999;
    font-size: 13px;
    margin-top: 2px;
}

.list-detail {
    flex: 1;
    min-width: 0;
}

.list-action {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

/* === 分页 === */

.pagination {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 20px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border: 1.5px solid #667eea;
    font-weight: 600;
    padding: 8px 15px;
    display: inline-block;
    border-radius: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: #667eea;
    border: 1.5px solid #667eea;
    cursor: pointer;
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination a.active,
.pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination .current,
.pagination span.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination span {
    background: #f5f5f5;
    color: #999;
    border: 1.5px solid #e0e0e0;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

.pagination .disabled,
.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    border: 1.5px solid #e0e0e0;
}

.pagination a:active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: scale(0.95);
}

.pagination li {
    list-style: none;
    display: inline-block;
    margin: 0 2px;
}

.pagination select {
    padding: 6px 8px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #667eea;
    background: white;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* === 表单 === */

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.form-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #ff4757;
    margin-left: 3px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:read-only {
    background: #f5f5f5;
    color: #999;
}

.form-input::placeholder {
    color: #aaa;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.input-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.form-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.form-body {
    padding: 20px;
    background: white;
}

.form-select {
    flex: 1;
    padding: 12px 15px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
    outline: none;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gradient-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
    -webkit-tap-highlight-color: transparent;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.gradient-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.radio-item:active {
    background: #f8f9ff;
}

.radio-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    flex-shrink: 0;
}

.radio-item span {
    font-size: 14px;
    color: #333;
}

.radio-item label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.radio-item input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 500;
}

.radio-item:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-option input[type="radio"]:checked + label {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: #667eea;
    font-weight: 600;
}

/* === 空状态 === */

.empty-state {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 16px;
    color: #999;
}

/* === 首页/信息页 === */

.content {
    padding: 0 15px;
}

.section-title {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    font-weight: 600;
    margin: 20px 4px 10px 4px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: white;
    border-radius: 2px;
    margin-right: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    -webkit-tap-highlight-color: transparent;
}

.grid-item:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.grid-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.grid-label {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.theme-medical { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.theme-food { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.theme-culture { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.theme-fun { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.theme-literature { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.theme-wisdom { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.theme-job { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.theme-house { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.theme-service { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.theme-life { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.theme-business { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.theme-education { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

@media (max-width: 375px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .header h1 {
        font-size: 20px;
    }
}

/* === 头部 === */

.header {
    text-align: center;
    padding: 20px 0;
    color: white;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 14px;
    color: #666;
}

.header-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* === 类型选择器 === */

.type-selector {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-item {
    flex: 1;
    min-width: calc(33.33% - 7px);
    padding: 10px 15px;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    color: #666;
}

.type-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.type-item:active {
    transform: scale(0.95);
}

.highlight {
    color: #ff6b6b;
    font-weight: bold;
}

/* === 个人中心 === */

.profile-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px 20px 30px;
    text-align: center;
    margin: 0 0 15px 0;
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-top: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4), 0 0 0 4px rgba(255,255,255,0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.username {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.identity-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.icon-blue { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.icon-green { background: linear-gradient(135deg, #43e97b, #38f9d7); color: white; }
.icon-orange { background: linear-gradient(135deg, #fa709a, #fee140); color: white; }
.icon-purple { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: white; }
.icon-red { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); color: white; }
.icon-teal { background: linear-gradient(135deg, #0cebeb, #20e3b2); color: white; }

/* === 收藏 === */

.collection-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    line-height: 1.5;
    word-break: break-word;
}

.collection-title:active {
    color: #667eea;
}

.collection-url {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-desc {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.collection-meta {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.collection-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    background: #e8e8e8;
    color: #999;
}

.collection-rank.rank1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: white;
}

.collection-rank.rank2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: white;
}

.collection-rank.rank3 {
    background: linear-gradient(135deg, #cd7f32, #b8690e);
    color: white;
}

.collection-price {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 8px;
}

/* === 操作面板 === */

.action-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.action-overlay.show {
    opacity: 1;
    visibility: visible;
}

.action-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 20px 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.action-overlay.show .action-sheet {
    transform: translateY(0);
}

.action-sheet-title {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 10px;
}

.action-btn:last-child {
    margin-bottom: 0;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn-edit {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

.action-btn-del {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.action-btn-cancel {
    background: #f5f5f5;
    color: #666;
    margin-top: 6px;
}

.long-press-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.long-press-hint.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* === 信息列表 === */

.info-item {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
    position: relative;
}

.expired-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 77, 77, 0.3);
    border: 3px solid rgba(255, 77, 77, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.info-item:active {
    transform: translateX(5px) scale(0.98);
}

.info-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.info-phone {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-icon {
    font-size: 16px;
}

.info-content {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 8px;
}

.info-tel {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.info-time {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.info-list {
    display: grid;
    gap: 10px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* === 按钮 === */

.btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:active {
    background: #e8e8e8;
}

.btn-disabled {
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
}

.btn-follow {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn-follow-followed {
    background: #f0f0f0;
    color: #999;
}

.btn-follow-unfollowed {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-follow-unfollowed:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.btn-sms {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #667eea;
    color: #667eea;
    background: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn-sms:active {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(0.95);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.locked-badge {
    background: #fee;
    color: #c00;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* === 消息 === */

.message-link {
    text-decoration: none;
    display: block;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.message-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.message-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
    flex: 1;
}

.message-info {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: center;
}

.message-success {
    color: #52c41a;
    font-weight: 600;
}

.message-error {
    color: #ff4d4f;
    font-weight: 600;
}

.recipient-name {
    color: #667eea;
    font-weight: 600;
}

.unread-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* === 标签导航 === */

.tab-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.tab-item {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-item:active {
    opacity: 0.8;
}

/* === 统计栏 === */

.stats-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 15px 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-text {
    font-size: 14px;
    color: #666;
}

.stats-text strong {
    color: #667eea;
    font-size: 18px;
}

/* === 用户卡片 (管理) === */

.user-list {
    display: grid;
    gap: 10px;
}

.user-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.user-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

.user-phone {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.user-arrow {
    font-size: 18px;
    color: #ccc;
    flex-shrink: 0;
}

/* === 网站卡片 (管理) === */

.web-list {
    display: grid;
    gap: 10px;
}

.web-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.web-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.web-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 6px;
}

.web-url {
    font-size: 13px;
    color: #999;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 草药/谚语卡片 === */

.herb-list,
.proverb-list {
    display: grid;
    gap: 12px;
}

.herb-card,
.proverb-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    padding: 18px;
}

.herb-card:active,
.proverb-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.herb-title,
.proverb-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.herb-desc,
.proverb-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.herb-meta,
.proverb-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* === 登录/注册 === */

.auth-container {
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    animation: authFadeIn 0.5s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

.auth-header {
    text-align: center;
    padding: 40px 20px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px 20px 0 0;
}

.auth-icon {
    font-size: 56px;
    margin-bottom: 15px;
    width: 90px;
    height: 90px;
    line-height: 90px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.auth-form {
    padding: 30px 25px;
}

.auth-footer {
    padding: 0 25px 25px;
}

.form-section-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #bbb;
    font-size: 13px;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.form-section-divider span {
    padding: 0 12px;
    white-space: nowrap;
}

.login-links-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.login-links-container .link-item {
    margin-bottom: 10px;
    padding: 8px 0;
}

.login-links-container .link-item:last-child {
    margin-bottom: 0;
}

/* === 提示/信息框 === */

.tips-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.tips-title {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    padding-left: 18px;
    position: relative;
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.steps-box {
    background: rgba(102, 126, 234, 0.05);
    border: 1.5px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

.steps-title {
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.highlight-phone {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    margin: 0 4px;
}

.highlight-content {
    display: inline-block;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 14px;
    color: #667eea;
    margin: 0 4px;
}

.warning-box {
    background: #fff5f5;
    border-left: 4px solid #ff4d4f;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.warning-box strong {
    color: #ff4d4f;
}

/* === 城市选择 === */

.current-city {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: center;
}

.current-city-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.current-city-value {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
}

.select-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.city-select-group {
    display: flex;
    gap: 10px;
    position: relative;
}

.city-select-group select {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: border-color 0.3s ease;
}

.city-select-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
}

/* === 其他 === */

.tip-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.resend-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.resend-link:active {
    color: #764ba2;
}

.switch-account {
    display: block;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 14px;
    background: white;
    color: #667eea;
    border: 1.5px solid #667eea;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    text-decoration: none;
}

.switch-account:active {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(0.98);
}

.card-footer {
    padding: 15px 20px;
    text-align: center;
    background: white;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.card-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-text {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.link-item {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.link-item:last-child {
    margin-bottom: 0;
}

.link-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.link-item a:active {
    opacity: 0.8;
}

/* === App下载页 === */

.page-header {
    text-align: center;
    padding: 36px 20px 20px;
    color: white;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.page-header p {
    font-size: 13px;
    opacity: 0.85;
}

.app-card {
    margin: 0 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
    object-fit: contain;
}

.app-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.app-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.download-section {
    margin: 0 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.download-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.download-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    margin-right: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 12px;
}

.download-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.btn-android {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(67, 233, 123, 0.35);
}

.btn-harmonyos {
    background: linear-gradient(135deg, #e60012 0%, #ff4d4d 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(230, 0, 18, 0.3);
}

.btn-icon {
    font-size: 22px;
    margin-right: 10px;
}

.qr-section {
    margin: 0 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.qr-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.qr-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    margin-right: 10px;
}

.qr-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    object-fit: contain;
    background: #fff;
    padding: 6px;
    cursor: pointer;
}

.qr-label {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.qr-icon {
    font-size: 15px;
}

.qr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.qr-overlay.active {
    display: flex;
}

.qr-overlay-img {
    width: 80vw;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.qr-overlay-label {
    color: #fff;
    font-size: 15px;
    margin-top: 16px;
    font-weight: 500;
}

.qr-overlay-close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 12px;
}

/* === 用户信息卡片 === */

.user-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-detail {
    flex: 1;
}

.user-nickname {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-balance {
    text-align: right;
}

.balance-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

/* === 成功状态 === */

.success-state {
    padding: 40px 20px;
    text-align: center;
    background: white;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-text {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.success-phone {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

/* === 协议 === */

.agreement-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.agreement-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.agreement-meta p {
    margin-bottom: 4px;
}

.agreement-body h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.agreement-body h2:first-child {
    margin-top: 0;
}

.agreement-body p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    text-align: justify;
}

.agreement-body .sub-item {
    padding-left: 1em;
    margin-bottom: 8px;
}

/* === 返回按钮(变体) === */

.back-link {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 15px auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.back-link:hover {
    background: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.back-link:active {
    transform: scale(0.98);
}

.back-btn {
    display: block;
    text-align: center;
    margin: 20px 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
