/* 海威品牌轻创业工作室网站样式表 */
/* 作者: Claude Code */

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

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    line-height: 1.8;
    color: #2c3e50;
    overflow-x: hidden;
    background: #ffffff;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.95) 0%, rgba(0, 86, 179, 0.95) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.98) 0%, rgba(0, 86, 179, 0.98) 100%);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(360deg);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #ffd700);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* 主页英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 8rem 0 5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-title .text-primary {
    color: #ffd700 !important;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    animation: fadeInUp 1.2s ease;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-image-container {
    animation: fadeInRight 1s ease;
}

.hero-image {
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* 段落标题样式 */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin-top: 0.5rem;
    border-radius: 2px;
    animation: expandWidth 0.8s ease;
}

/* 关于我们区域 */
.about-section {
    padding: 5rem 0;
    background: #ffffff;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-image-wrapper:hover::before {
    opacity: 1;
}

.about-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.about-section h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-section .lead {
    color: #667eea;
    font-weight: 500;
}

.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 服务项目区域 */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.3);
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card .card-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: #6c757d;
    line-height: 1.8;
}

.service-card .btn {
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 600;
}

.service-card:hover .btn {
    transform: scale(1.05);
}

.hover-effect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-effect:hover {
    transform: translateY(-10px);
}

/* 作品展示区域 */
.portfolio-section {
    padding: 5rem 0;
    background: #ffffff;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-overlay .btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.portfolio-overlay .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 联系我们区域 */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(102, 126, 234, 0.05);
}

.contact-item h5 {
    color: #2c3e50;
    font-weight: 700;
}

.contact-item p {
    color: #6c757d;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-item:hover .icon-box {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-form {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15) !important;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 3rem 0 1rem;
    color: rgba(255, 255, 255, 0.9);
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    color: #ffd700 !important;
    transform: translateY(-5px) rotate(10deg);
    background: rgba(255, 215, 0, 0.2);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 991px) {
    .hero-section {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

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

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

    .hero-buttons .btn {
        margin-bottom: 1rem;
        width: 100%;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

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

@media (max-width: 767px) {
    .navbar {
        padding: 0.5rem 0;
    }

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

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

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

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .service-card,
    .portfolio-item {
        margin-bottom: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

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

/* 高度优化 */
@media (min-width: 1200px) {
    .hero-section {
        padding: 10rem 0 6rem;
    }

    .container {
        max-width: 1200px;
    }
}

/* 焦点状态优化 */
.btn:focus,
.btn:active,
.form-control:focus {
    outline: none;
}

/* 滚动到顶部按钮 */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 加载动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 额外的视觉效果 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}