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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6b5b4b;
    --dark-color: #0d0d0d;
    --light-color: #f7f5f2;
    --accent-color: #b8a88a;
    --text-color: #2a2a2a;
    --text-light: #7a7a7a;
    --white: #fff;
    --line: #e3ded6;
    --shadow: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.page-transition-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.page-transition-overlay::before {
    content: '澳麟家具';
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.page-transition-enter {
    animation: fadeIn 0.5s ease-out;
}

.page-transition-leave {
    animation: fadeOut 0.3s ease-in;
}

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

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.chinese-brand-nav {
    display: flex;
    align-items: center;
}

.brand-name-nav {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 4px;
    border-right: 1px solid var(--accent-color);
    padding-right: 30px;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-name-nav:hover {
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: bold;
}

.logo-en {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}

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

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

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 8px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    object-fit: cover;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    margin-right: 10px;
    font-weight: 500;
    color: var(--dark-color);
}

#userProfile {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--light-color);
    border-radius: 2px;
    transition: all 0.3s;
}

#userProfile:hover {
    background: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: 0.3s;
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: white;
    width: 30px;
    border-radius: 2px;
}

.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.1s linear;
    z-index: 10;
}

.hero-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
    max-width: 80%;
}

.hero-caption.active {
    opacity: 1;
}

.hero-caption h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-caption p {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-caption h2 {
        font-size: 24px;
    }
    
    .hero-caption p {
        font-size: 14px;
    }
    
    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .hero-indicators {
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero-indicator.active {
        width: 24px;
    }
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px 8px 35px;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    width: 200px;
    transition: width 0.3s;
}

.search-input:focus {
    width: 250px;
    outline: none;
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--primary-color);
    font-size: 14px;
}

.search-btn {
    margin-left: 10px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

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

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.chinese-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.brand-name {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-right: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.brand-name:hover {
    color: var(--accent-color);
}

.brand-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.red-mark {
    color: #c00;
    font-size: 12px;
    margin-bottom: 5px;
}

.chinese-mark {
    font-size: 18px;
    font-weight: normal;
    writing-mode: vertical-rl;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-established {
    font-size: 16px !important;
    opacity: 0.8;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

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

.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-info h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--light-color);
    border-radius: 2px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.products {
    background: var(--light-color);
}

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

.product-hint {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: var(--text-light);
}

.product-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 2px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: none;
    border: 2px solid var(--primary-color);
}

.product-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Product Detail Styles */
.product-detail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.product-detail.active {
    opacity: 1;
    visibility: visible;
}

.product-detail-content {
    background: var(--white);
    padding: 40px;
    border-radius: 2px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.product-detail.active .product-detail-content {
    transform: scale(1);
}

.product-detail h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: var(--shadow);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info p {
    line-height: 1.8;
    color: var(--text-color);
}

.product-info h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info ul {
    list-style: none;
}

.product-info li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.product-info li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

#closeProductDetail {
    display: block;
    margin: 30px auto 0;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

.services {
    background: var(--white);
}

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

.service-card {
    padding: 40px 30px;
    background: var(--light-color);
    border-radius: 2px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.workorder-request {
    background: var(--light-color);
}

.workorder-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 2px;
    box-shadow: var(--shadow);
}

.workorder-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.workorder-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.workorder-form input,
.workorder-form select,
.workorder-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
}

.workorder-form textarea {
    resize: vertical;
    min-height: 120px;
}

.workorder-form .btn-submit-workorder {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.workorder-form .form-hint {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .workorder-form {
        padding: 20px;
    }
    
    .workorder-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.contact-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.map-container iframe {
    display: block;
}

.map-link {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.map-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--accent-color);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--accent-color);
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .products-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-left {
        gap: 15px;
    }

    .brand-name-nav {
        font-size: 16px;
        letter-spacing: 2px;
        padding-right: 15px;
    }

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

    .search-container {
        display: none;
    }

    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }

    .hero-indicators {
        bottom: 30px;
        gap: 10px;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .brand-name {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .chinese-mark {
        font-size: 14px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        grid-column: span 1;
    }
}
