/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    background: white;
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* 后台管理LOGO */
.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo .logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

.admin-logo h1 {
    font-size: 18px;
    margin: 0;
}

/* 登录页LOGO */
.login-info .info-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    border-radius: 6px;
    background: white;
    padding: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-menu li a.login-btn {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 500;
    margin-left: 8px;
}

.nav-menu li a.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
    color: var(--text);
    padding: 180px 0 120px;
    text-align: center;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-content > p {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-content .hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 通用section样式 */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

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

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 16px;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    height: 360px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 72px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.placeholder-image p {
    font-size: 18px;
    margin-top: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 产品展示 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 700;
}

.product-info > p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.product-info .product-desc {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
}

/* 新闻公告 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.news-date {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 600;
}

.news-day {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.news-month {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.9;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
}

.news-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* 联系我们 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 30px;
    margin-bottom: 32px;
    color: var(--primary);
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

.contact-form {
    background: white;
    padding: 36px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 30px;
    margin-bottom: 32px;
    color: var(--primary);
    font-weight: 700;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 800;
}

.footer-section h4 {
    font-size: 17px;
    font-weight: 600;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 14px;
}

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

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

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.footer-bottom .beian {
    margin-top: 12px;
    font-size: 13px;
}

.footer-bottom .beian a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom .beian a:hover {
    color: white;
    text-decoration: underline;
}

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

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
