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

:root {
    --primary-color: #c19980;
    --primary-dark: #a67c5d;
    --primary-light: #d4b8a0;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f8f8f8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-size: 24px;
    letter-spacing: 4px;
}

.logo-text span:last-child {
    font-size: 12px;
    letter-spacing: 2px;
    color: #666;
}

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

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    width: 18px;
    height: 18px;
}

.header-auth {
    display: flex;
    gap: 16px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-center-btn {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.user-center-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.user-nickname {
    color: var(--text-dark);
    font-size: 14px;
}

.logout-btn {
    text-decoration: none;
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

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

.login-btn,
.register-btn {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.login-btn {
    color: var(--text-dark);
    background: transparent;
    border: 1px solid #ddd;
}

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

.register-btn {
    color: white;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.register-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.banner {
    width: 100%;
}

.banner .swiper-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.banner .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.banner .swiper-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.banner .swiper-slide.active {
    display: block;
}

.banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255,255,255,0.4);
}

.swiper-button-next {
    right: 30px;
}

.swiper-button-prev {
    left: 30px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: '>';
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.swiper-button-prev::after {
    content: '<';
}

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet.active {
    background: white;
    transform: scale(1.2);
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 153, 128, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 0px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-top: 3px solid var(--primary-color);
}

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

.card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.8;
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card a:hover {
    text-decoration: underline;
}

.footer {
    background: #5D5D5D;
    color: white;
    padding: 55px 0 25px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr 0.8fr;
    gap: 35px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-col {
    padding: 0 5px;
}

.footer-col h4 {
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(193, 153, 128, 0.3);
    padding-bottom: 10px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-copyright {
    text-align: center;
    color: #fff;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 35px 0;
}

.page-banner h1 {
    font-size: 38px;
}

.content-section {
    padding: 60px 0;
}

.timeline-item {
    padding: 20px 0;
    border-left: 2px solid var(--primary-color);
    padding-left: 24px;
    margin-left: 10px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
}

.news-list {
    padding: 0;
}

.news-item {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.news-item a {
    text-decoration: none;
    color: inherit;
}

.news-item h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.news-item p {
    color: var(--text-gray);
    font-size: 14px;
}

.news-item:hover h3 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .swiper-container {
        height: 300px;
    }
    
    .swiper-slide .slide-content h2 {
        font-size: 28px;
    }
}
