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

html {
    background-color: #fafafa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark-mode {
    background-color: #0a0a0a;
}

body {
    font-family: 'Inter Variable', -apple-system, 'system-ui', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: rgb(250, 250, 249);
    color: #252525;
    color: oklch(0.145 0 0);
    line-height: 1.5;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark-mode body {
    background-color: rgb(10, 10, 10);
    color: #e5e5e5;
    color: oklch(0.9 0 0);
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.hero-header {
    text-align: center;
    padding-top: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .hero-header {
        padding-top: 152px;
    }
}

.logo-container {
    margin-bottom: 16px;
}

.logo-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f6f6f7 0%, #94b089 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

html.dark-mode .logo-placeholder {
    background: linear-gradient(135deg, #2a2a2a 0%, #5a7a4f 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.logo-placeholder:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

html.dark-mode .logo-placeholder:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.hero-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
}

.underline-text-container {
    position: relative;
    display: inline-block;
}

.underline-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.rough-annotation {
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 130%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 767px) {
    .rough-annotation {
        top: 50%;
        height: 150%;
        transform: translateY(-42%);
        left: -10%;
        width: 120%;
    }
}

.rough-path-1,
.rough-path-2 {
    stroke: #c5d3b7;
    stroke-width: 50;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(255, 209, 220, 0.4));
    transition: stroke 0.3s ease;
}

html.dark-mode .rough-path-1,
html.dark-mode .rough-path-2 {
    stroke: #4a5a3f;
    filter: drop-shadow(0 1px 2px rgba(100, 120, 100, 0.3));
}

@media (min-width: 768px) {
    .rough-path-1,
    .rough-path-2 {
        stroke-width: 55;
    }
}

/* 手绘动画效果 */
@keyframes rough-notation-dash {
    to {
        stroke-dashoffset: 0;
    }
}

.rough-path-1 {
    stroke-dasharray: 515.533;
    stroke-dashoffset: 515.533;
    animation: rough-notation-dash 300ms ease-out 0ms 1 normal forwards;
}

.rough-path-2 {
    stroke-dasharray: 512.996;
    stroke-dashoffset: 512.996;
    animation: rough-notation-dash 300ms ease-out 300ms 1 normal forwards;
}

.products-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

html.dark-mode .section-title {
    color: #e5e5e5;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
    }
}

@media (min-width: 960px) {
    .products-grid {
        max-width: 960px;
    }
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-card article {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: rgb(250,250,250);
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    box-shadow: 15px 15px 12px rgba(0,0,0, 0.02);
    transition: all 0.2s ease;
    height: 100%;
}

html.dark-mode .product-card article {
    background: rgb(20, 20, 20);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 15px 15px 12px rgba(0,0,0, 0.3);
}

.product-card:hover article {
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

html.dark-mode .product-card:hover article {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-logo {
    font-size: 32px;
    font-weight: 700;
    color: #252525;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

html.dark-mode .product-info h3 {
    color: #e5e5e5;
}

.product-icon {
    flex-shrink: 0;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-icon-colored {
    opacity: 1;
    border-radius: 4px;
}

.product-card:hover .product-icon {
    opacity: 1;
    transform: scale(1.05);
}

.product-card:hover .product-icon-colored {
    transform: scale(1.1);
}

.product-info p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

html.dark-mode .product-info p {
    color: #a0a0a0;
}

.site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 48px 0 4px 0;
    margin-top: 0px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.social-link {
    color: #666666;
    transition: color 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html.dark-mode .social-link {
    color: #a0a0a0;
    background: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

html.dark-mode .social-link:hover {
    color: #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 备案号 - 低调但可见的样式 */
.icp-info {
    margin-top: 16px;
    margin-bottom: 0;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.icp-info:hover {
    opacity: 0.65;
}

.icp-link {
    font-size: 11px;
    color: #999999;
    text-decoration: none;
    letter-spacing: 0.5px;
    font-weight: 300;
    transition: color 0.2s ease;
}

html.dark-mode .icp-link {
    color: #666666;
}

.icp-link:hover {
    color: #777777;
}

html.dark-mode .icp-link:hover {
    color: #888888;
}

/* 暗夜模式切换按钮 */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: #ffffff;
    border: 0px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
}

html.dark-mode .theme-toggle {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

html.dark-mode .theme-toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-icon {
    color: #666666;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

html.dark-mode .theme-icon {
    color: #a0a0a0;
}

.sun-icon {
    position: absolute;
    opacity: 1;
    transform: rotate(0deg);
}

html.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

html.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

@media (max-width: 768px) {
    main {
        gap: 96px;
        padding: 0 24px;
    }

    .hero-header {
        padding-top: 96px;
    }

    .logo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        padding: 8px;
    }
}
