/* 
  KY Kaiyuan Group - Light Black Gold Theme
  Colors:
  - Deep Black: #121212
  - Light Black (Grey): #1e1e1e
  - Primary Gold: #c5a059
  - Secondary Gold: #d4af37
  - Text White: #ffffff
  - Off White: #f5f5f5
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --bg-black: #121212;
    --bg-light: #1e1e1e;
    --primary-gold: #c5a059;
    --secondary-gold: #d4af37;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

li {
    list-style: none;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-gold);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--secondary-gold);
    transform: translateY(-2px);
}

/* Layout Parts */
section {
    padding: 100px 10%;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(18,18,18,0.7), rgba(18,18,18,0.7)), url('https://tse-mm.bing.com/th?q=企业总部大楼') center/cover;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

/* Grid & Cards */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
}

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

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    section { padding: 60px 5%; }
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 80px 10% 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-col h3 {
    color: var(--primary-gold);
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Products Page Specifics */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

select, input {
    background: var(--bg-black);
    border: 1px solid var(--primary-gold);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    outline: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    padding: 10px 20px;
    border: 1px solid var(--primary-gold);
    border-radius: 5px;
}

.page-link.active {
    background: var(--primary-gold);
}

/* Online Customer Service */
.cs-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gold);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
}
