:root {
    --primary-color: #2196F3;
    --secondary-color: #4CAF50;
    --accent-color: #FF5722;
    --text-color: #FFFFFF;
    --secondary-text-color: #BDBDBD;
    --background-color: #121212;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
}

header.scrolled {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 导航链接专属样式 */
.nav-container {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

nav a {
    position: relative;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

.logo {
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.carousel {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    height: 360px;
}

.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.carousel button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000000;
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

.main {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: auto;
}

.section {
    margin-top: 3rem;
    text-align: center;
}

.section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section p {
    line-height: 1.6;
    color: var(--secondary-text-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #212121;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    cursor: pointer;
}

.features .feature p {
    text-indent: 2em;
    margin: 0;
    padding: 0;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

[class^="container"] {
    display: block;
    position: relative;
    width: 250px;
    height: 50px;
    text-decoration: none;
    overflow: hidden;
}

[class^="container"] .outline {
    stroke: var(--secondary-color);
    stroke-width: 2px;
    fill: transparent;
    width: 250px;
    height: 50px;
}

[class^="container"] .text {
    position: relative;
    top: -40px;
    font-family: 'Helvetica';
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-transform: uppercase;
    transition: color 1s;
}

[class^="container"]:hover .outline {
    stroke: var(--accent-color);
}

[class^="container"]:hover .text {
    color: var(--accent-color);
}

.container .outline {
    stroke-dasharray: 25 25;
    stroke-dashoffset: -588;
    transition: all 1s;
}

.container:hover .outline {
    stroke-dasharray: 50 50;
    stroke-dashoffset: -275;
}

.container2 .outline {
    stroke-dasharray: 50 250;
    stroke-dashoffset: -575;
    transition: all 1s;
}

.container2:hover .outline {
    stroke-dasharray: 50 100;
    stroke-dashoffset: -75;
}

.container3 .outline {
    stroke-dasharray: 70 230;
    stroke-dashoffset: 60;
    transition: all 1s;
}

.container3:hover .outline {
    stroke-dashoffset: -350;
}

footer {
    background: #212121;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .carousel {
        height: 240px;
    }

    .slide img {
        height: 240px;
    }

    nav a {
        margin-left: 1rem;
    }
}
