:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 6px; font-weight: 500; cursor: pointer; transition: all 0.3s; border: none; font-size: 14px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #d97706; }
.section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 40px; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-light); margin-top: -30px; margin-bottom: 40px; }

.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text); padding: 4px 0; position: relative; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 2px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

.hero { background: url('../images/banner.jpg') center/cover no-repeat; color: white; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: #34d399; }
.hero-desc { font-size: 18px; opacity: 0.9; margin-bottom: 32px; line-height: 1.8; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: #34d399; }
.stat-label { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.hero-search { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.2); }
.hero-search-title { font-size: 18px; margin-bottom: 16px; font-weight: 600; }
.search-box { display: flex; gap: 0; background: white; border-radius: 8px; overflow: hidden; }
.search-box input { flex: 1; padding: 14px 18px; border: none; outline: none; font-size: 15px; }
.search-box button { padding: 14px 28px; background: var(--accent); color: white; border: none; font-weight: 600; cursor: pointer; }
.search-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.search-tag { background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: 0.3s; }
.search-tag:hover { background: rgba(255,255,255,0.25); }

.categories { background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat-card { background: var(--bg); border-radius: 12px; padding: 28px 16px; text-align: center; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.cat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: white; font-size: 24px; }
.cat-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cat-count { font-size: 13px; color: var(--text-light); }

.supply-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.supply-tab { padding: 12px 0; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.supply-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.supply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.supply-card { background: var(--white); border-radius: 12px; padding: 20px; border: 1px solid var(--border); transition: 0.3s; cursor: pointer; }
.supply-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.supply-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.badge-supply { background: #dbeafe; color: var(--primary); }
.badge-demand { background: #fef3c7; color: #92400e; }
.supply-title { font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.supply-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.supply-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.supply-price span { font-size: 13px; color: var(--text-light); font-weight: 400; }
.supply-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.supply-company { font-size: 13px; color: var(--text-light); }
.supply-time { font-size: 12px; color: var(--text-light); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-img { height: 180px; background: url('../images/fm.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: white; font-size: 48px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.news-body { padding: 20px; }
.news-category { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.cat-policy { background: #dbeafe; color: var(--primary); }
.cat-market { background: #d1fae5; color: var(--secondary); }
.cat-tech { background: #fef3c7; color: #92400e; }
.cat-company { background: #fce7f3; color: #be185d; }
.news-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.news-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.news-date { font-size: 13px; color: var(--text-light); }

.features { background: linear-gradient(135deg, #f0f9ff, #ecfdf5); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { background: var(--white); padding: 32px 24px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.feature-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: white; font-size: 28px; }
.feature-title { font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; }

.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-title { color: white; font-weight: 600; margin-bottom: 20px; font-size: 16px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; transition: 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: white; }

.marketplace-hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 60px 0; }
.marketplace-search { max-width: 700px; margin: 0 auto; }
.filter-bar { background: var(--white); padding: 16px 0; border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 100; }
.filter-inner { display: flex; gap: 16px; align-items: center; }
.filter-select { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; outline: none; }
.marketplace-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 40px 0; }
.sidebar { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); height: fit-content; position: sticky; top: 140px; }
.sidebar-title { font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-group { margin-bottom: 24px; }
.sidebar-group-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.sidebar-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.sidebar-checkbox input { cursor: pointer; }
.result-count { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.result-list { display: flex; flex-direction: column; gap: 16px; }
.result-item { background: var(--white); border-radius: 12px; padding: 20px; border: 1px solid var(--border); display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: center; transition: 0.3s; }
.result-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.result-img { width: 100px; height: 100px; background: url('https://picsum.photos/id/30/200/200') center/cover no-repeat; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.result-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.result-info p { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.result-action { text-align: right; }
.result-price { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }

.news-hero { background: linear-gradient(135deg, #1e3a8a, #0f766e); color: white; padding: 60px 0; text-align: center; }
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px 0; }
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-item { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); display: grid; grid-template-columns: 200px 1fr; gap: 24px; transition: 0.3s; cursor: pointer; }
.news-item:hover { box-shadow: var(--shadow-lg); }
.news-item-img { background: url('../images/fm.jpg') center/cover no-repeat; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 40px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.news-item-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.news-item-content p { color: var(--text-light); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.news-sidebar { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); height: fit-content; position: sticky; top: 80px; }
.sidebar-news-item { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; cursor: pointer; }
.sidebar-news-item:hover { color: var(--primary); }
.sidebar-news-item:last-child { border-bottom: none; }

.about-hero { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: white; padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: 40px; margin-bottom: 16px; }
.about-hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.about-section { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 16px; height: 400px; display: flex; align-items: center; justify-content: center; color: white; font-size: 80px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.about-content h2 { font-size: 28px; margin-bottom: 20px; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-dot { position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 2px var(--primary); }
.timeline-year { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline-text { color: var(--text-light); font-size: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.team-card { background: var(--white); border-radius: 12px; padding: 24px; text-align: center; border: 1px solid var(--border); }
.team-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; }
.team-name { font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--text-light); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 440px; padding: 40px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; transition: 0.3s; }
.form-input:focus { border-color: var(--primary); }
.form-select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; background: white; }
.form-hint { font-size: 13px; color: var(--text-light); margin-top: 16px; text-align: center; }
.form-hint a { color: var(--primary); font-weight: 500; }
.role-selector { display: flex; gap: 12px; margin-bottom: 20px; }
.role-option { flex: 1; padding: 12px; border: 2px solid var(--border); border-radius: 8px; text-align: center; cursor: pointer; font-size: 14px; transition: 0.3s; }
.role-option.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 600; }
.form-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); margin-bottom: 8px; cursor: pointer; }
.form-checkbox input { width: 16px; height: 16px; cursor: pointer; }
.form-checkbox a { color: var(--primary); text-decoration: underline; }
.form-checkbox a:hover { color: var(--primary-dark); }

.detail-header { background: linear-gradient(135deg, #1e3a8a, #0f766e); color: white; padding: 40px 0 20px; }
.detail-path { font-size: 14px; opacity: 0.8; margin-bottom: 16px; }
.detail-path a { color: white; opacity: 0.8; }
.detail-path a:hover { text-decoration: underline; }
.detail-title { font-size: 32px; margin-bottom: 8px; }
.detail-subtitle { font-size: 14px; opacity: 0.8; }
.detail-layout { display: grid; grid-template-columns: 400px 1fr; gap: 32px; padding: 40px 0; }
.detail-gallery { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); }
.detail-main-img { height: 300px; background: url('https://picsum.photos/id/60/800/450') center/cover no-repeat; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 64px; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); margin-bottom: 16px; }
.detail-thumbs { display: flex; gap: 8px; }
.detail-thumb { width: 80px; height: 80px; background: var(--bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; border: 2px solid transparent; }
.detail-thumb.active { border-color: var(--primary); }
.detail-info { background: var(--white); border-radius: 12px; padding: 24px; border: 1px solid var(--border); }
.detail-price-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.detail-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.detail-price-unit { font-size: 16px; color: var(--text-light); }
.detail-specs { margin-bottom: 24px; }
.detail-specs h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.detail-specs table { width: 100%; border-collapse: collapse; }
.detail-specs td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.detail-specs td:first-child { color: var(--text-light); width: 120px; }
.detail-desc { margin-bottom: 24px; }
.detail-desc h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.detail-desc p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.detail-contact { background: #eff6ff; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.detail-contact h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--primary); }
.detail-contact-info { display: flex; gap: 24px; font-size: 14px; color: var(--text-light); }
.detail-actions { display: flex; gap: 12px; }

.news-detail-header { background: linear-gradient(135deg, #1e3a8a, #0f766e); color: white; padding: 60px 0; text-align: center; }
.news-detail-header h1 { font-size: 36px; margin-bottom: 16px; }
.news-detail-meta { font-size: 14px; opacity: 0.8; }
.news-detail-body { background: var(--white); border-radius: 12px; padding: 48px; margin: 40px 0; border: 1px solid var(--border); }
.news-detail-body p { font-size: 16px; line-height: 2; color: var(--text); margin-bottom: 20px; text-indent: 2em; }
.news-detail-body h3 { font-size: 20px; font-weight: 600; margin: 32px 0 16px; color: var(--primary); }
.news-detail-body ul { margin-left: 24px; margin-bottom: 20px; }
.news-detail-body li { font-size: 16px; line-height: 2; color: var(--text); margin-bottom: 8px; }
.news-detail-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.news-related { margin-top: 40px; }
.news-related h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.news-related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-related-item { background: var(--white); border-radius: 12px; padding: 20px; border: 1px solid var(--border); cursor: pointer; transition: 0.3s; }
.news-related-item:hover { box-shadow: var(--shadow); }
.news-related-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-related-item p { font-size: 12px; color: var(--text-light); }

.login-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-container { background: var(--white); border-radius: 16px; padding: 48px; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); }
.login-container h1 { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 32px; }
.login-tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 2px solid var(--border); }
.login-tab { flex: 1; padding: 12px; text-align: center; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.login-form .form-group { margin-bottom: 20px; }
.login-form .form-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; }
.login-form .form-input:focus { border-color: var(--primary); }
.login-form button { width: 100%; padding: 14px; font-size: 16px; }
.login-form .form-hint { text-align: center; margin-top: 20px; }
.login-error { color: #ef4444; font-size: 13px; margin-top: 8px; display: none; }

.no-result-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.no-result-container { text-align: center; max-width: 500px; }
.no-result-icon { font-size: 80px; margin-bottom: 24px; color: var(--text-light); }
.no-result-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.no-result-desc { font-size: 15px; color: var(--text-light); margin-bottom: 32px; }

@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .supply-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .marketplace-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .news-layout { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .news-related-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: var(--shadow); gap: 16px; }
    .nav.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .supply-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .news-item { grid-template-columns: 1fr; }
    .result-item { grid-template-columns: 1fr; text-align: center; }
    .result-action { text-align: center; }
    .news-related-list { grid-template-columns: 1fr; }
    .news-detail-body { padding: 24px; }
}