/* ========================================
   铭微小微企业建站 - 全局样式表
   潮鞋简约风：黑色 + 浅灰 + 亮橙
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #1a1a1a;
    --color-dark-gray: #2d2d2d;
    --color-light-gray: #f5f5f5;
    --color-bright-orange: #ff6b00;
    --color-white: #ffffff;
    --color-gray-text: #888888;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 60px rgba(255, 107, 0, 0.3);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--color-black);
    color: var(--color-light-gray);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========================================
   导航栏 - 独特侧边悬浮式
   ======================================== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    transition: var(--transition-smooth);
}

.nav-container.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bright-orange);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-light-gray);
    padding: 10px 0;
    position: relative;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-bright-orange);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-bright-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-bright-orange);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ========================================
   页脚 - 不对称设计
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-black) 100%);
    padding: 80px 50px 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--color-bright-orange);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.footer-brand p {
    color: var(--color-gray-text);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--color-dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light-gray);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    border-color: var(--color-bright-orange);
    background: var(--color-bright-orange);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-bright-orange);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-gray-text);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-bright-orange);
    padding-left: 10px;
}

.footer-contact p {
    color: var(--color-gray-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact strong {
    color: var(--color-bright-orange);
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--color-dark-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--color-gray-text);
    font-size: 0.9rem;
}

/* ========================================
   首页 Banner - 纵向卷轴展开式
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 50px 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 30px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-title span {
    color: var(--color-bright-orange);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--color-gray-text);
    margin-bottom: 50px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-cta {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.btn {
    padding: 18px 45px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-bright-orange) 0%, #ff8c00 100%);
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 107, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--color-light-gray);
    border: 2px solid var(--color-light-gray);
}

.btn-outline:hover {
    border-color: var(--color-bright-orange);
    color: var(--color-bright-orange);
    transform: translateY(-5px);
}

/* ========================================
   滚动动画类
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   核心优势板块 - 卡片网格布局
   ======================================== */
.features-section {
    padding: 120px 50px;
    background: var(--color-dark-gray);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(255, 107, 0, 0.15);
    color: var(--color-bright-orange);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--color-gray-text);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-black);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-bright-orange), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.feature-img {
    height: 200px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-img img {
    transform: scale(1.1);
}

.feature-content {
    padding: 30px;
}

.feature-content h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.feature-content p {
    color: var(--color-gray-text);
    line-height: 1.7;
}

/* ========================================
   资讯列表板块
   ======================================== */
.news-section {
    padding: 120px 50px;
    background: var(--color-black);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: var(--color-dark-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--color-bright-orange);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: var(--color-gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   通用页面样式
   ======================================== */
.page-header {
    padding: 180px 50px 100px;
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-black) 100%);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    color: var(--color-gray-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-content {
    padding: 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.about-text h2 span {
    color: var(--color-bright-orange);
}

.about-text p {
    color: var(--color-gray-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========================================
   服务列表页面
   ======================================== */
.service-list-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background: var(--color-dark-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-item-content {
    padding: 30px;
}

.service-item-content h3 {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.service-item-content p {
    color: var(--color-gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--color-bright-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link::after {
    content: '→';
    transition: transform 0.3s;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   新闻列表页面
   ======================================== */
.news-list-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: var(--color-dark-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.news-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-item-content {
    padding: 25px;
}

.news-item-content h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item-content p {
    color: var(--color-gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-meta span {
    color: var(--color-bright-orange);
    font-size: 0.85rem;
}

/* ========================================
   新闻详情页面
   ======================================== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-dark-gray);
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--color-gray-text);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta .date {
    color: var(--color-bright-orange);
}

.article-body {
    color: var(--color-light-gray);
    line-height: 2;
    font-size: 1.1rem;
}

.article-body img {
    margin: 30px 0;
    border-radius: 15px;
}

.article-body p {
    margin-bottom: 25px;
}

/* 相关新闻板块 */
.related-news {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid var(--color-dark-gray);
}

.related-news h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* ========================================
   联系页面
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 32px;
    height: 32px;
}

.contact-item h4 {
    color: var(--color-white);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--color-gray-text);
}

.contact-form {
    background: var(--color-dark-gray);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--color-light-gray);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--color-black);
    border: 2px solid var(--color-dark-gray);
    border-radius: 10px;
    color: var(--color-light-gray);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-bright-orange);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 15px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-dark-gray);
        flex-direction: column;
        padding: 100px 40px;
        gap: 25px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .features-section,
    .news-section {
        padding: 80px 20px;
    }
    
    .page-header {
        padding: 140px 20px 60px;
    }
    
    .page-content {
        padding: 60px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .service-list-page,
    .news-list-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
