:root {
    --primary-color: #9c7a44;
    --secondary-color: #c5a47b;
    --accent-color: #896646;
    --text-dark: #333;
    --bg-light: #fdfdfd;
    --white: #ffffff;
    --footer-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 65px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    letter-spacing: 1px;
}

.nav-link:hover { color: var(--primary-color); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover .nav-link::after { width: 100%; }

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    min-width: max-content;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 8px;
    padding: 8px 15px;
    margin-top: 15px;
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    font-size: 14px;
    text-align: center;
}

.dropdown-menu li a:hover {
    background: #f9f5ef;
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: var(--footer-bg);
    color: var(--secondary-color);
    padding: 80px 0 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding: 0 40px 60px;
    border-bottom: 1px solid rgba(197, 164, 123, 0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 30px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #aaa; font-size: 14px; }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 8px; }

.footer-bottom {
    text-align: center;
    padding: 40px 40px 0;
    font-size: 13px;
    color: #666;
}

.footer-bottom a { color: #888; margin: 0 15px; }
.footer-bottom a:hover { color: var(--secondary-color); }

/* Responsive Header & Footer */
@media (max-width: 1200px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-content { padding: 0 20px; }
    nav { display: none; }
    .footer-content { grid-template-columns: 1fr; }
}
