/* ========================================
   凤凰官网 - 英超布局风格
   配色：纯白 + 凤凰金色
   ======================================== */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量 - 配色方案 */
:root {
    /* 凤凰金色系（主要强调色） */
    --phoenix-gold: #d4af37;
    --phoenix-gold-dark: #b8860b;
    --phoenix-gold-light: #e6c24a;
    
    /* 纯白和灰度 */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* 功能色 */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* 字体 */
    --font-primary: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* 间距 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   导航栏 - 纯白风格
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: rotate(360deg) scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--phoenix-gold), var(--phoenix-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--phoenix-gold);
    background: var(--gray-50);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--phoenix-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-auth {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--gray-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--white);
    color: var(--phoenix-gold);
    border: 2px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #00ffb3, #00d4ff, #ff00e5, #ff0040);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.btn-primary:hover {
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #ff0040, #ff00e5, #00d4ff, #00ffb3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: var(--white);
    color: var(--phoenix-gold);
    border: 2px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #00ffb3, #00d4ff, #ff00e5, #ff0040);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.btn-outline:hover {
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #ff0040, #ff00e5, #00d4ff, #00ffb3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ========================================
   Hero轮播区域 - 卡片式轮播
   ======================================== */
.hero-carousel-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f7f3e9 50%, #f0e7d5 100%);
}

.hero-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.hero-carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    cursor: pointer;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.carousel-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(59, 42, 10, 0.95) 0%, rgba(59, 42, 10, 0.85) 60%, transparent 100%);
    padding: 50px 40px 35px;
    color: var(--white);
}

.carousel-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--phoenix-gold) 0%, var(--phoenix-gold-dark) 100%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--white);
}

.carousel-excerpt {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 700px;
}

.carousel-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.carousel-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray-800);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--phoenix-gold);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

/* 轮播指示点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--phoenix-gold);
    width: 32px;
    border-radius: 6px;
}

/* 加载状态 */
.carousel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-600);
}

.carousel-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--phoenix-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    text-align: center;
    padding: 40px;
}

.carousel-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.carousel-empty-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.carousel-empty-desc {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ========================================
   内容区域 - 英超风格布局
   ======================================== */
.articles-section {
    padding: var(--space-2xl) 0;
    background: var(--gray-50);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 3px solid var(--phoenix-gold);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.view-all {
    color: var(--phoenix-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
}

.view-all:hover {
    gap: var(--space-md);
}

/* 文章网格 - 英超卡片式布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* 文章卡片 - 英超风格 */
.article-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--phoenix-gold);
}

.article-cover-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
}

.article-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-200);
    display: block;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

.article-card:hover .video-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(212, 175, 55, 1);
}

.article-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-300), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 3rem;
}

.article-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: var(--phoenix-gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    width: fit-content;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.tag:hover {
    background: var(--gray-200);
}

.no-articles {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-500);
    font-size: 1.1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
}

/* ========================================
   模态框样式
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 3vh auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 500px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 900px;
}

/* 全屏编辑器模式 */
#product-modal.fullscreen-editor .modal-content {
    width: 96vw;
    max-width: 96vw;
    height: 96vh;
    max-height: 96vh;
    margin: 2vh auto;
}

#product-modal.fullscreen-editor .publish-form {
    height: calc(96vh - 140px);
}

/* ========================================
   全局消息提示（用于 showMessage）
   ======================================== */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: #374151; /* 默认信息 */
}

.message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.message.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.message.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 模态主体滚动区与粘底动作区（用于大表单） */
.modal-content .publish-form {
    padding: var(--space-lg) var(--space-xl);
    overflow-y: auto;
}

.modal-content .modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: var(--space-sm) var(--space-xl);
    border-top: 1px solid #eee;
    display: flex;
    gap: var(--space-sm);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.auth-form,
.publish-form {
    padding: var(--space-xl);
    display: grid;
    gap: var(--space-lg);
}

.auth-form input,
.publish-form input,
.publish-form textarea,
.publish-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.auth-form input:focus,
.publish-form input:focus,
.publish-form textarea:focus,
.publish-form select:focus {
    outline: none;
    border-color: var(--phoenix-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.publish-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    padding-top: var(--space-md);
}

/* ========================================
   管理面板项目
   ======================================== */
.manage-content {
    max-height: 500px;
    overflow-y: auto;
}

.manage-item {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.manage-item:hover {
    border-color: var(--phoenix-gold);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.manage-item-info h4 {
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.manage-item-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.manage-item-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ========================================
   移动端导航遮罩
   ======================================== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========================================
   滚动条样式
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ========================================
   iOS 优化
   ======================================== */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 防止iOS缩放 */
input, textarea, select {
    font-size: 16px !important;
}

/* 优化触摸反馈 */
.btn, .nav-link, a, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
}

/* 优化滚动性能 */
.articles-grid,
.manage-content,
.transactions-list {
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        top: calc(70px + env(safe-area-inset-top));
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding: var(--space-xl) 0;
        gap: var(--space-md);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
    
    /* Hero区 */
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* 文章网格 */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    /* 模态框 */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* 管理项目 */
    .manage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .manage-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   辅助类
   ======================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

/* ========================================
   iOS 移动端优化
   ======================================== */

/* iOS安全区域适配 */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* iOS触摸优化 */
button, a, .article-card, .carousel-btn, .nav-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* iOS滚动优化 */
body {
    -webkit-overflow-scrolling: touch;
}

.nav-menu, .admin-sidebar, .rich-editor-content {
    -webkit-overflow-scrolling: touch;
}

/* iOS输入框优化 */
input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
}

/* iOS字体渲染优化 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS 3D触摸优化 */
@media (hover: hover) and (pointer: fine) {
    .article-card:hover,
    button:hover,
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* iOS图片加载优化 */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* iOS视频播放器优化 */
video {
    -webkit-playsinline: true;
    playsinline: true;
}

/* iOS表单缩放禁用（避免输入时缩放） */
@media screen and (max-width: 768px) {
    input:focus, textarea:focus, select:focus {
        font-size: 16px !important;
    }
}
