
/*
 * Style for 深圳市创瑾尚芸科技有限公司 - Final Unified Version
 * Theme: Tech Blue / High Contrast / Structured
 */
:root {
    --primary-color: #004A99;
    --secondary-color: #FF6B00;
    --bg-light: #F8FAFC;
    --text-dark: #1A202C;
    --text-muted: #4A5568;
    --white: #ffffff;
    --border-color: #CBD5E0;
}

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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

/* Header */
header {
    background: var(--white);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-dark);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 74, 153, 0.9), rgba(0, 45, 99, 0.9)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.section-title h2 {
    font-size: 28px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
}

/* Product Hub Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-card .cat-img {
    width: 100%;
    max-width: 220px;
    height: 220px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
    background-color: #f0f2f5;
    border: 1px solid var(--border-color);
}

.category-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

.category-card .card-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.category-card:hover .card-btn {
    background: var(--secondary-color);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.category-card:hover::before {
    background: var(--secondary-color);
}

/* Product Detail Page Styles */
.detail-hero {
    background: linear-gradient(rgba(0, 74, 153, 0.8), rgba(0, 45, 99, 0.8)), url('/images/product-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.detail-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: -40px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.detail-img-box {
    flex: 1;
    text-align: center;
}

.detail-img-box img {
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.detail-info {
    flex: 1.5;
}

.detail-info h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.detail-info h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 10px;
}

.detail-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    padding: 15px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.feature-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.detail-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.detail-specs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.detail-specs th, .detail-specs td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 14px;
}

.detail-specs th {
    background: var(--bg-light);
    color: var(--primary-color);
    width: 30%;
}

/* About Page */
.about-row {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-row:nth-child(even) {
    flex-direction: row-reverse;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Card - Right side, vertically centered, direct QR */
.contact-floating-bar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 2000;
    animation: bounceRight 2s infinite;
    width: 160px;
}

@keyframes bounceRight {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-55%); }
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 14px;
    text-align: center;
}

.contact-item img {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

.direct-qr {
    width: 100px;
    height: 100px;
    border: 1px solid var(--border-color);
    padding: 2px;
    background: white;
}

/* Footer */
footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 50px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-grid h3, .footer-grid h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.friend-links-box {
    background: #2d3748;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
}

.icp-link {
    display: block;
    margin-top: 10px;
    color: #718096;
}

@media (max-width: 768px) {
    .about-row { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .detail-container { flex-direction: column; margin-top: 20px; padding: 20px; }
    .detail-feature-grid { grid-template-columns: 1fr; }
    .contact-floating-bar { width: 90%; justify-content: center; right: 5%; left: 5%; transform: none; top: auto; bottom: 20px; }
    .hero h1 { font-size: 28px; }
}
