/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #111;
    color: #ddd;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: #f0a500;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 头部 */
.site-header {
    background: #000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0a500;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-nav a {
    color: #ccc;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.main-nav a:hover {
    color: #f0a500;
}

/* 首页 Hero */
.hero {
    height: 80vh;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top:0;left:0;right:0;bottom:0;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    letter-spacing: 3px;
}
.hero .btn {
    background: #f0a500;
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero .btn:hover {
    background: #fff;
}

/* 分类卡片 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    background: #222;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: #fff;
}
.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* 画廊页 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 40px 0;
}
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    background: #1a1a1a;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.03);
}

/* 灯箱 */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}
.lightbox .close {
    position: absolute;
    top: 20px; right: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}
.lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* 关于页面 */
.about-section {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
}
.about-section img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0a500;
    margin-bottom: 20px;
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 60px auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #111;
    border: 1px solid #333;
    color: #ddd;
    border-radius: 5px;
}
.contact-form button {
    background: #f0a500;
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.alert-success {
    background: #2e7d32;
    color: #fff;
}
.alert-error {
    background: #c62828;
    color: #fff;
}

/* 底部 */
.site-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #777;
}