/* 品牌色彩系统 */
:root {
    --primary-color: #1890ff;
    --primary-light: #40a9ff;
    --primary-dark: #096dd9;
    --secondary-color: #52c41a;
    --accent-color: #fa8c16;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-disabled: #bfbfbf;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-disabled: #f5f5f5;
    --border-color: #d9d9d9;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.18);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e4e7ed;
}

/* 社区标签页样式 */
.community-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #e4e7ed;
    padding-top: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

/* 订单标签页样式 */
.order-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #e4e7ed;
    padding-top: 20px;
}

.order-tabs .tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.order-tabs .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.order-tabs .tab-btn:hover {
    color: var(--primary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff4757;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #ff4757;
}

.admin-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
}

.admin-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* 主要内容 */
.main {
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    min-height: calc(100vh - 60px);
}

.section.active {
    display: block;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff7a45 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

/* 服务预览 */
.services-preview {
    padding: 80px 0;
    background: white;
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-container.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-container.list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24,144,255,0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

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

.service-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

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

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-current {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 600;
}

.price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.btn-buy {
    width: 100%;
    background: #ff4757;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: #ff3742;
}

/* 订单列表 */
.order-list {
    padding: 40px 0;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.order-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 8px;
}

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

.order-status {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.status-pending {
    background: rgba(250, 173, 20, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(250, 173, 20, 0.3);
}

.status-paid {
    background: rgba(82, 196, 26, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(82, 196, 26, 0.3);
}

.status-error {
    background: rgba(255, 77, 79, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 77, 79, 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);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.total-amount {
    text-align: center;
    font-size: 24px;
    color: #ff4757;
    font-weight: bold;
    margin: 20px 0;
}

/* 社区页面样式 */
.reviews-section, .qa-section, .share-section {
    padding: 20px 0;
}

.review-item, .qa-item, .share-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-header, .share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.reviewer-name, .sharer-name {
    font-weight: bold;
    color: #333;
}

.review-rating {
    color: #ffa500;
    font-size: 18px;
}

.review-time, .share-time {
    color: #999;
    font-size: 14px;
}

.review-content {
    line-height: 1.6;
    color: #666;
}

.question h4 {
    color: #333;
    margin-bottom: 10px;
}

.answer p {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

.share-item h4 {
    color: #333;
    margin-bottom: 10px;
}

.share-item p {
    color: #666;
    line-height: 1.6;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-btn, .sort-btn, .compare-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.filter-btn:hover, .sort-btn:hover, .compare-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 布局切换按钮 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.layout-switch {
    display: flex;
    gap: 5px;
}

.layout-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.layout-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.layout-btn:hover {
    border-color: var(--primary-color);
}
/* 登录注册模态框样式 */
.login-modal {
    max-width: 400px;
}

.auth-container {
    width: 100%;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.verify-code-group {
    display: flex;
    gap: 10px;
}

.verify-code-group input {
    flex: 1;
}

.btn-verify {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-full {
    width: 100%;
    margin-bottom: 20px;
}

.social-login {
    text-align: center;
}

.social-login p {
    color: #999;
    margin-bottom: 15px;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-social.wechat {
    color: #07c160;
    border-color: #07c160;
}

.btn-social.qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

.btn-social:hover {
    background: #f5f5f5;
}

/* 导航用户区域 */
.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-dark);
}
/* 优惠券样式 */
.coupons-list {
    padding: 20px 0;
}

.coupon-item {
    display: flex;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.coupon-item.used {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    opacity: 0.6;
}

.coupon-info {
    flex: 1;
    padding: 20px;
    color: white;
}

.coupon-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.coupon-info p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.coupon-amount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.coupon-condition {
    font-size: 12px;
    opacity: 0.8;
}

.coupon-expire {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.coupon-action {
    display: flex;
    align-items: center;
    padding: 20px;
}

.coupon-used {
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

/* 营销模块样式 */
.marketing-section {
    padding: 40px 0;
    background: white;
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.marketing-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.marketing-item.seckill {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.marketing-item.group {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    color: white;
}

.marketing-item.newuser {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
    color: white;
}

.marketing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.marketing-icon {
    font-size: 32px;
    margin-right: 15px;
}

.marketing-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

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

/* 公告栏样式 */
.notice-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
}

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

.notice-text {
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 搜索区域样式 */
.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-icon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #999;
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-size: 16px;
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

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

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.search-filters select {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.cart-count {
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* 桌面端隐藏移动导航 */
.mobile-nav {
    display: none;
}

/* 悬浮聊天框样式 */
.platform-service-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.platform-service-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-service-btn::before {
    content: '💬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.platform-service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.6);
}

