/* 香港達米森科技有限公司官网样式 */

/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #0066CC;
    --secondary-color: #00B8D4;
    --accent-color: #FF6B35;
    --dark-bg: #0A0E27;
    --light-bg: #F8F9FA;
    --text-primary: #FFFFFF;
    --text-secondary: #B8BCC8;
    --text-dark: #1A1A2E;
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00B8D4 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    --card-shadow: 0 10px 40px rgba(0, 102, 204, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==================== 英雄区域 ==================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 184, 212, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 30px;
}

.title-accent {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 102, 204, 0.6);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* 英雄区域视觉元素 */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.visual-1 {
    width: 300px;
    height: 300px;
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.visual-2 {
    width: 200px;
    height: 200px;
    top: 200px;
    right: 200px;
    animation-delay: 2s;
}

.visual-3 {
    width: 150px;
    height: 150px;
    bottom: 50px;
    right: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== 核心价值 ==================== */
.values {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
}

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

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.2);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.value-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== 关于我们 ==================== */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s ease forwards 0.3s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-description {
    margin: 30px 0;
}

.about-description p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.company-credentials {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credential-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credential-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.about-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s ease forwards 0.6s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-visual {
    height: 400px;
    background: var(--dark-bg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.city-outline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.3), transparent);
    clip-path: polygon(0 100%, 10% 70%, 20% 85%, 30% 60%, 40% 80%, 50% 50%, 60% 75%, 70% 45%, 80% 70%, 90% 55%, 100% 100%);
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 184, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* ==================== 服务领域 ==================== */
.services {
    padding: 100px 0;
    background: var(--dark-bg);
    color: white;
}

.services .section-title {
    color: white;
}

.services .section-subtitle {
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.service-icon-1 {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
}

.service-icon-2 {
    background: linear-gradient(135deg, #0066CC 0%, #0088CC 100%);
}

.service-icon-3 {
    background: linear-gradient(135deg, #00B8D4 0%, #00D4E4 100%);
}

.service-icon-4 {
    background: linear-gradient(135deg, #9C27B0 0%, #BA27C0 100%);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== 优势特点 ==================== */
.advantages {
    padding: 100px 0;
    background: white;
}

.advantages-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.advantage-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: white;
    box-shadow: var(--card-shadow);
    transform: translateX(10px);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
}

.advantage-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.advantage-content p {
    color: #666;
    line-height: 1.6;
}

/* ==================== 联系我们 ==================== */
.contact {
    padding: 100px 0;
    background: var(--dark-bg);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: var(--text-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s ease forwards 0.3s;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s ease forwards 0.6s;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

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

/* ==================== 页脚 ==================== */
.footer {
    background: #050817;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* ==================== 移动端菜单 ==================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    z-index: 999;
}

.mobile-menu-content {
    padding: 100px 40px;
    text-align: center;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 30px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--secondary-color);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .company-credentials {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-accent {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 30px 20px;
    }

    .service-card {
        padding: 30px;
    }

    .contact-form {
        padding: 30px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .title-main {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .company-credentials {
        flex-direction: column;
    }

    .advantage-item {
        padding: 20px;
    }

    .advantage-number {
        min-width: 60px;
    }
}

/* ==================== 滚动动画 ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==================== 自定义滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}