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

:root {
    --primary-gold: #d4af37;
    --light-gold: #e5c100;
    --dark-gold: #b8860b;
    --bg-black: #121212;
    --bg-card: #1e1e1e;
    --bg-darker: #0d0d0d;
    --text-white: #f5f5f5;
    --text-dim: #a0a0a0;
    --border-color: rgba(212, 175, 55, 0.2);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    position: relative;
}

.section-padding {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-gold);
    font-weight: 300;
    letter-spacing: 2px;
}

.section-title.center {
    text-align: center;
}

img {
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: 0.4s;
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(18, 18, 18, 0.95);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-gold);
    letter-spacing: 1px;
}

.logo span {
    font-size: 1.2rem;
    color: #fff;
    margin-left: 5px;
    font-weight: 300;
}

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

.nav-links li a {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

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

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.nav-search:focus-within {
    border-color: var(--primary-gold);
}

.nav-search input {
    background: none;
    border: none;
    color: #fff;
    margin-left: 10px;
    outline: none;
    width: 120px;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://tse-mm.bing.com/th?q=商务摩天大楼全景') no-referrer center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(18,18,18,1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

.btn-primary {
    background: var(--primary-gold);
    color: #000;
    border: 1px solid var(--primary-gold);
}

.btn-primary:hover {
    background: var(--light-gold);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: #000;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-white {
    border: 1px solid #fff;
    color: #fff;
}

/* Company Intro */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

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

.stat-item {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.intro-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* Product Preview */
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: 0.4s;
}

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

.card-img {
    margin-bottom: 20px;
    overflow: hidden;
}

.card-info h3 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* News */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.more-link {
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}

.news-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.news-date {
    text-align: center;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.news-date .month {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.news-content h3 a:hover {
    color: var(--primary-gold);
}

.news-content p {
    color: var(--text-dim);
    margin-top: 5px;
}

/* Latest Launch Slider */
.launch-slider-container {
    overflow-x: auto;
    padding-bottom: 20px;
}

.launch-cards {
    display: flex;
    gap: 20px;
    min-width: max-content;
}

.launch-card {
    width: 280px;
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.launch-card i {
    color: var(--primary-gold);
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
}

.launch-card h4 {
    margin-bottom: 10px;
    color: var(--text-white);
}

.launch-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Member Share */
.share-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: linear-gradient(90deg, #1e1e1e 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.share-content {
    padding: 60px;
}

.share-content h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.share-content p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.share-actions {
    display: flex;
    gap: 15px;
}

.share-image img {
    height: 100%;
    object-fit: cover;
}

/* Dynamics */
.dynamics-wrapper {
    height: 400px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
}

.dynamics-scroll {
    animation: scrollDynamics 40s linear infinite;
}

@keyframes scrollDynamics {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.dynamics-wrapper:hover .dynamics-scroll {
    animation-play-state: paused;
}

.dynamic-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dynamic-item i {
    color: var(--primary-gold);
    width: 14px;
    margin-right: 15px;
}

.dynamic-item span:first-of-type {
    flex-grow: 1;
}

.dynamic-item .time {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Footer */
.main-footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand h3 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social i {
    cursor: pointer;
    transition: 0.3s;
}

.footer-social i:hover {
    color: var(--primary-gold);
}

.footer-links h4, .footer-contact h4, .footer-legal h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

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

.footer-links ul li a:hover {
    color: var(--primary-gold);
}

.footer-contact p, .footer-legal p {
    color: var(--text-dim);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Online CS sticky */
.fixed-cs {
    position: fixed;
    right: 20px;
    bottom: 40px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cs-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cs-panel {
    background: var(--bg-card);
    border: 1px solid var(--primary-gold);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.fixed-cs:hover .cs-panel {
    display: block;
}

.cs-btn {
    display: block;
    margin-top: 10px;
    background: var(--primary-gold);
    color: #000;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .intro-grid, .footer-grid, .share-box {
        grid-template-columns: 1fr;
    }
    .product-cards {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links, .nav-search {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .product-cards {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
