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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #fbbf24;
    --accent-secondary: #dc2626;
    --accent-gradient: linear-gradient(135deg, #dc2626 0%, #fbbf24 50%, #dc2626 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(251, 191, 36, 0.2);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(220, 38, 38, 0.08) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 6px 0;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 4px 0;
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 110px;
    max-width: 540px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.logo-img:hover {
    box-shadow: 0 0 32px rgba(251, 191, 36, 0.4);
    transform: scale(1.02);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 24px 40px;
    width: 100%;
    overflow-x: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin: 0 auto 32px auto;
    text-align: center;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

.avatar {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--accent-gradient);
    background-clip: padding-box;
    padding: 3px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-name {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
    display: block;
}

.hero-tagline {
    font-size: 24px;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
    display: block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
    display: block;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(251, 191, 36, 0.08);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    pointer-events: none;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.about {
    padding: 60px 24px 120px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.services {
    padding: 60px 24px 120px;
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.service-number {
    font-size: 64px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-primary);
}

.contact {
    padding: 60px 24px 120px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    justify-content: center;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.social-link svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.social-link span {
    font-weight: 600;
    font-size: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
}

.contact-card-header {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.contact-dots {
    display: flex;
    gap: 8px;
}

.contact-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.contact-dots span:nth-child(1) { background: #ff5f57; }
.contact-dots span:nth-child(2) { background: #febc2e; }
.contact-dots span:nth-child(3) { background: #28c840; }

.contact-card-body {
    padding: 24px;
}

.message {
    max-width: 80%;
    margin-bottom: 16px;
}

.message-received {
    margin-right: auto;
}

.message-sent {
    margin-left: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
}

.message-received .message-content {
    background: var(--bg-secondary);
    border-bottom-left-radius: 4px;
}

.message-sent .message-content {
    background: var(--accent-gradient);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
}

.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

/* 留言板样式 */
.form-group {
    margin-bottom: 20px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.guestbook-list-new {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    min-height: 400px;
    max-height: 550px;
    overflow-y: auto;
}

.guestbook-list-new h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.message-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.message-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-name {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 17px;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.message-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.message-delete {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.message-delete:hover {
    background: rgba(220, 38, 38, 0.1);
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-size: 15px;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll-delay-1 {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.2s;
}

.animate-on-scroll-delay-2 {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.4s;
}

.animate-on-scroll-delay-3 {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.6s;
}

.animate-on-scroll.visible,
.animate-on-scroll-delay-1.visible,
.animate-on-scroll-delay-2.visible,
.animate-on-scroll-delay-3.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-name {
        font-size: 42px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-info h2 {
        font-size: 36px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
