/* 
 * KY Kaiyuan Group - Global Styles 
 * Theme: Light Black Gold (淡黑金)
 */

:root {
    --primary-gold: #c5a02e;
    --light-gold: #e5c158;
    --dark-bg: #0f0f0f;
    --soft-black: #1a1a1a;
    --light-black: #262626;
    --text-gold: #d4af37;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-gold: rgba(197, 160, 46, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

img:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-gold);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid var(--border-gold);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    text-transform: uppercase;
}

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

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

.nav-links a.active {
    color: var(--primary-gold);
    font-weight: bold;
}

/* Sections */
section {
    padding: 100px 0;
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://tse-mm.bing.com/th?q=Kaiyuan+Group+HQ') no-repeat center/cover;
}

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

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

/* Cards */
.card {
    background: var(--soft-black);
    border: 1px solid var(--border-gold);
    padding: 25px;
    border-radius: 4px;
    transition: var(--transition);
}

.card:hover {
    background: var(--light-black);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 2px;
    cursor: pointer;
    background: transparent;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.btn:hover {
    background: var(--light-gold);
    color: var(--dark-bg);
    border-color: var(--light-gold);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Products Page specific */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--soft-black);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-gold);
}

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

select, input {
    background: var(--light-black);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    padding: 10px;
    border-radius: 4px;
    outline: none;
}

/* Footer */
footer {
    background: var(--soft-black);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Online Service Button */
.online-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--primary-gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
}
