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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%),
        url('../img/W020210816384304907889.jpg') center/cover no-repeat fixed;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    color: #e74c3c;
    font-size: 28px;
}

/* Search Container in Header */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    width: 130px;
}

.search-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.search-btn {
    padding: 8px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.search-btn i {
    font-size: 14px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e74c3c;
}

.login-button {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

/* 用户信息头部样式 */
.user-info-header {
    display: flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.user-name-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    width: 100px;
}

.user-name-dropdown:hover {
    background: rgba(231, 76, 60, 0.1);
}

.user-name-text {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name-dropdown .fa-chevron-down {
    color: #7f8c8d;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.user-name-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-name-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 移动端显示下拉菜单 */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        right: 20px;
        bottom: 80px;
        margin-top: 0;
        min-width: 180px;
        max-width: calc(100vw - 40px);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
    color: #e74c3c;
}

.dropdown-item i {
    width: 18px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.dropdown-item:hover i {
    color: #e74c3c;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

.btn-login {
    padding: 8px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    outline: none;
}

.lang-select:hover, .lang-select:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 40px 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Filter Section */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #e74c3c;
}

.search-box button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Reset Button Styles */
.reset-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 0 15px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-1px);
}

.reset-btn i {
    font-size: 12px;
}

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

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-weight: 600;
    color: #2c3e50;
}

.filter-item select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-item select:focus {
    border-color: #e74c3c;
    outline: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    max-width: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.product-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.spec-item i {
    color: #e74c3c;
    width: 16px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.price-section {
    margin-bottom: 15px;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.product-info-extra {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-location {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.location-value {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.location-value:before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #4a6cf7;
}

.product-feature {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    background-color: #e9ecef;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.product-feature:before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    color: #28a745;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-secondary:hover {
    background: #e74c3c;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* ThinkPHP Bootstrap风格分页样式 */
.pagination ul.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination ul.pagination li {
    display: inline-block;
}

.pagination ul.pagination li a,
.pagination ul.pagination li span {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid rgba(44, 62, 80, 0.1);
    min-width: 44px;
    text-align: center;
}

.pagination ul.pagination li a:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.pagination ul.pagination li.active span {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.pagination ul.pagination li.disabled span {
    background: rgba(255, 255, 255, 0.5);
    color: #999;
    cursor: not-allowed;
}

/* 兼容旧版直接a标签的分页样式 */
.pagination > a {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin: 0 4px;
}

.pagination > a:hover,
.pagination > a.active {
    background: #e74c3c;
    color: white;
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

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

.footer h3 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-item i {
    color: #e74c3c;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .login-button {
        margin-right: 10px;
    }

    .btn-login {
        padding: 6px 15px;
        font-size: 12px;
    }

    .user-info-header {
        margin-right: 10px;
    }

    .user-avatar-small {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin-right: 8px;
    }

    .user-name-text {
        max-width: 80px;
        font-size: 0.85rem;
    }

    .user-dropdown-menu {
        right: -20px;
        min-width: 180px;
    }

    .language-selector {
        gap: 5px;
    }

    .language-selector span {
        display: none;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }
}

.product-location-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== 登录和注册页面样式 ==================== */
.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 50px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #3498db);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    background: white;
}

.form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control::placeholder {
    color: #bdc3c7;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    height: 46px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #ddd;
}

.captcha-image:hover {
    border-color: #e74c3c;
    transform: scale(1.05);
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: #c0392b;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #7f8c8d;
    position: relative;
    z-index: 1;
}

.register-link {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.register-link a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.register-link a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-register:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

/* 错误提示样式 */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: block;
}

/* 表单加载状态 */
.btn-submit.loading {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 20px 10px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .captcha-group {
        flex-direction: column;
    }

    .captcha-image {
        width: 100%;
        height: auto;
    }
}

/* ==================== 用户中心页面样式 ==================== */
.user-center-container {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.user-center-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.user-sidebar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 30px 0;
    min-height: 100%;
}

.user-sidebar-header {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.user-email {
    color: white;
    font-size: 0.9rem;
    word-break: break-all;
    margin-top: 10px;
}

.user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu-item {
    margin: 0;
}

.user-menu-link {
    display: block;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    position: relative;
}

.user-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #e74c3c;
}

.user-menu-link.active {
    background: rgba(231, 76, 60, 0.2);
    color: white;
    border-left-color: #e74c3c;
}

.user-menu-link i {
    width: 20px;
    margin-right: 10px;
}

.user-content {
    padding: 40px;
}

.user-content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.user-content-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

.user-content-header p {
    color: #7f8c8d;
    margin: 10px 0 0;
}

/* 标签页样式 */
.user-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.user-tab {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.user-tab:hover {
    color: #e74c3c;
}

.user-tab.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.user-tab-content {
    display: none;
}

.user-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 表单样式 */
.profile-form {
    max-width: 600px;
}

.profile-form-group {
    margin-bottom: 25px;
}

.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-form-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    background: white;
}

.profile-form-group .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.profile-form-group .form-control:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e74c3c;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
    color: #2c3e50;
}

/* 提交按钮 */
.btn-save {
    padding: 14px 40px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    margin-top: 20px;
}

.btn-save:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-save:active {
    transform: translateY(0);
}

/* 用户信息卡片 */
.user-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.user-info-label {
    color: #7f8c8d;
    font-weight: 600;
}

.user-info-value {
    color: #2c3e50;
    font-weight: 500;
}

/* 快速操作按钮 */
.quick-action-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    color: white;
}

.quick-action-btn i {
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .user-center-wrapper {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        padding: 20px;
    }

    .user-menu {
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .user-menu-link {
        padding: 10px 20px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .user-menu-link.active {
        border-left: none;
        border-bottom-color: #e74c3c;
    }

    .user-content {
        padding: 20px;
    }

    .user-tabs {
        flex-wrap: wrap;
    }

    .user-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .user-center-container {
        padding: 20px 10px;
        margin-top: 60px;
    }

    .user-content-header h1 {
        font-size: 1.5rem;
    }

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

/* ==================== 新闻页面样式 ==================== */

/* 新闻列表页样式 */
.articles-list {
    margin: 40px 0;
}

.article-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    width: 360px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.article-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background: #2c5aa0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-time,
.article-views,
.article-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #2c5aa0;
}

.article-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.article-actions {
    margin-top: auto;
}

/* 新闻详情页样式 */
.article-detail {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    overflow: hidden;
}

.article-header {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.article-header .article-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.article-summary {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.article-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #333;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.6rem;
    border-left: 4px solid #2c5aa0;
    padding-left: 15px;
}

.article-content h3 {
    font-size: 1.4rem;
}

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

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

.article-content blockquote {
    border-left: 4px solid #2c5aa0;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.article-tags {
    padding: 30px 40px;
    border-top: 1px solid #eee;
}

.article-tags h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2c5aa0;
    color: white;
}

.article-actions {
    padding: 30px 40px;
    border-top: 1px solid #eee;
}

.social-share h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

/* 相关文章样式 */
.related-articles {
    margin: 50px 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.related-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: #2c5aa0;
}

.related-summary {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

/* 文章导航样式 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 45%;
}

.nav-btn:hover {
    background: #f8f9fa;
    border-color: #2c5aa0;
}

.prev-btn {
    justify-content: flex-start;
}

.next-btn {
    justify-content: flex-end;
    text-align: right;
}

.nav-content {
    margin: 0 15px;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #333;
}

/* 暂无图片占位符样式 */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.no-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ddd" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21,15 16,10 5,21"/></svg>') center/40px 40px no-repeat;
    opacity: 0.3;
}

.no-image-placeholder span {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-header {
        padding: 25px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-tags,
    .article-actions {
        padding: 20px 25px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        max-width: 100%;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

