/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* 头部样式 */
.header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    flex-shrink: 0;
    order: 1;
}

.logo i {
    font-size: 24px;
}

.logo:hover {
    color: #ffed4e;
}

.nav {
    display: flex;
    gap: 20px;
    order: 2;
    flex-shrink: 0;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 3;
    flex-shrink: 0;
}

/* 按钮样式 */
.btn-login, .btn-register, .btn-logout, .btn-submit, .btn-view {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: #28a745;
    color: white;
}

.btn-register {
    background: #007bff;
    color: white;
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-submit {
    background: #fff;
    color: #ff6b6b;
    padding: 10px 22px;
    border-radius: 18px;
    font-size: 14px;
}

.btn-view {
    background: #007bff;
    color: white;
}

.btn-login:hover, .btn-register:hover, .btn-logout:hover, .btn-view:hover {
    opacity: 0.8;
}

.btn-submit:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-link {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    color: #fff;
    background: #28a745;
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.3s;
}

.profile-link:hover {
    background: #218838;
}

/* 主要内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 8px 16px 18px;
    margin-bottom: 14px;
}

.featured-section {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 14px;
    color: white;
}

.featured-section h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.featured-section p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* 公告区域 */
.announcements {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcements h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcements h2 i {
    color: #3498db;
}

.announcement-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.announcement-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.announcement-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.announcement-item p {
    color: #495057;
    margin: 5px 0;
    line-height: 1.6;
}

/* 公告列表（用于管理页面） */
.announcements-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item.grid {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.announcement-item.grid:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.announcement-title {
    font-weight: bold;
    color: #2c3e50;
}

.announcement-date {
    color: #6c757d;
    font-size: 14px;
}

.announcement-features {
    color: #495057;
    font-size: 14px;
}

.no-announcements {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tags .tag:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.filter-tags .tag.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 商品卡片 - 瓦片样式 */
.product-card.tile {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.product-card.tile:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 商品标签 - 自动发卡气泡 */
.product-label {
    position: absolute;
    top: 12px;
    left: 8px;
    background: #000;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 商品缩略图 - 显示后台上传的图片 */
.product-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 15px 0 15px;
}

.product-thumb img {
    width: 90%;
    height: 100%;
    object-fit: contain;
    margin-top: 20px;
}

/* 商品信息 */
.tile-meta {
    padding: 10px 15px 15px 15px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tile-title {
    font-size: 14px;
    font-weight: normal;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.4;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tile-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin: 0;
}

/* 特色商品区域 */
.featured-products {
    margin-bottom: 30px;
}

.featured-products h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-products h2 i {
    color: #ff6b6b;
}

/* 所有商品区域 */
.all-products {
    margin-bottom: 30px;
}

.all-products h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-products h2::before {
    content: '🎯';
    font-size: 20px;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-radius: 10px;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer p:first-child {
    color: #ffd700;
    font-weight: bold;
}

/* 管理后台样式 */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
    pointer-events: none;
}

.admin-nav {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.admin-nav a:hover::before {
    width: 100px;
    height: 100px;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-nav a.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.admin-nav a span {
    position: relative;
    z-index: 1;
}

.admin-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.admin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 表格样式 */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.orders-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    position: relative;
}

.orders-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.orders-table tr:hover td {
    background: #f8f9fa;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status.sold_out {
    background: #fff3cd;
    color: #856404;
}

/* 按钮组 */
.product-actions {
    display: flex;
    gap: 5px;
}

.product-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.product-actions .btn:hover::before {
    width: 100px;
    height: 100px;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.product-actions .btn span {
    position: relative;
    z-index: 1;
}

/* 通用按钮气泡效果 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 120px;
    height: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

/* 主要按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
}

/* 次要按钮样式 */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4043 100%);
    color: white;
}

/* 小按钮样式 */
.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* 危险按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: white;
}

.btn-danger::before {
    background: rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* 模态框增强 */
.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(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close:hover {
    color: #333;
}

/* 表单样式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* 特色商品标识 */
.featured-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

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

/* 英雄区域 */
.hero-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section .headline {
    text-align: center;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.video-section {
    margin-bottom: 20px;
}

.video-wrapper {
    margin-bottom: 20px;
    text-align: center;
}

.video-wrapper video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 侧边栏 */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
}

.sidebar-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.sidebar-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.sidebar-item p {
    color: #6c757d;
    margin: 0;
}

/* 表单样式 */
.login-form, .register-form {
    max-width: 400px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-form h2, .register-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-login, .btn-register {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #007bff;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.back-home a {
    color: #6c757d;
    text-decoration: none;
}

.back-home a:hover {
    color: #495057;
}

/* 消息提示 */
.message, .alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.message.success, .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error, .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info, .alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}


/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}


/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        text-align: left;
        padding: 6px 8px;
        margin-bottom: 6px;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 1;
        flex-shrink: 0;
        font-size: 16px;
    }
    
    .logo i {
        font-size: 18px;
    }
    
    .nav {
        display: flex;
        gap: 8px;
        align-items: center;
        order: 2;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
        min-width: auto;
    }
    
    .welcome {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        order: 3;
    }
    
    .welcome span {
        font-size: 13px;
        line-height: 1.1;
    }
    
    .nav-slogan {
        order: 4;
        width: 100%;
        text-align: center;
        font-size: 1.0em;
        line-height: 1.25;
        padding: 2px 0 0;
        margin-top: 2px;
    }
    
    .announcement-item.grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        gap: 10px;
    }
    
    .announcement-title {
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }
    
    .announcement-date,
    .announcement-features {
        display: none;
    }
    
    .announcement-actions {
        flex: 0 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-card.tile {
        border-radius: 8px;
        height: 260px;
    }
    
    .product-thumb {
        height: 180px;
        padding: 20px 12px 0 12px;
    }
    
    .product-thumb img {
        width: 88%;
        margin-top: 15px;
    }
    
    .tile-meta {
        padding: 8px 12px 12px 12px;
    }
    
    .tile-title {
        font-size: 12px;
        height: 18px;
        margin-bottom: 2px;
    }
    
    .tile-price {
        font-size: 16px;
    }
    
    .product-label {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .filter-tags {
        padding: 15px;
        gap: 10px;
    }
    
    .filter-tags .tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 6px 10px 14px;
        margin-bottom: 10px;
    }
    
    .sidebar {
        margin-bottom: 12px;
    }
    
    .logo h1 {
        font-size: 15px;
    }
    
    .logo p {
        font-size: 9px;
    }
    
    .featured-section {
        padding: 9px 10px;
        margin-bottom: 8px;
    }
    
    .featured-section h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .featured-section p {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .btn-submit {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 14px;
    }
    
    .announcements-section h2 {
        font-size: 18px;
    }
    
    .btn-view {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .login-form, .register-form {
        margin: 30px auto;
        padding: 20px;
    }
    
    .btn-login, .btn-register {
        font-size: 15px;
    }
}

/* 超小屏幕样式 */
@media (max-width: 480px) {
    .header {
        padding: 8px 10px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .logo {
        font-size: 14px;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .logo i {
        font-size: 16px;
    }
    
    .nav {
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .nav a {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .user-actions {
        flex-shrink: 0;
        gap: 6px;
    }
    
    .btn-login, .btn-register, .btn-logout {
        padding: 6px 10px;
        font-size: 12px;
    }
}